Submission #1254452

#TimeUsernameProblemLanguageResultExecution timeMemory
1254452aren_danceA Light Inconvenience (CEOI23_light)C++20
0 / 100
1098 ms1051144 KiB
//#include "light.h" #include <bits/stdc++.h> using namespace std; long long cnt; void prepare(){ cnt = 1; } std::pair<long long, std::vector<long long>> join(long long p){ vector<long long> g; int x=1; long long y=p; cnt+=p; p=cnt; while(p>1){ g.push_back(p); p-=(1<<x); x++; } g.push_back(1); reverse(g.begin(),g.end()); return {y,g}; } std::pair<long long, std::vector<long long>> leave(long long p){ cnt-=p; long long y=p; p=cnt; vector<long long> g; int x=1; while(p>1){ g.push_back(p); p-=(1<<x); x++; } g.push_back(1); reverse(g.begin(),g.end()); return {y,g}; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...