제출 #1123002

#제출 시각아이디문제언어결과실행 시간메모리
112300212345678A Light Inconvenience (CEOI23_light)C++17
0 / 100
190 ms416 KiB
#include "light.h" #include <bits/stdc++.h> using namespace std; long long cnt=1; void prepare(){ } std::pair<long long, std::vector<long long>> join(long long p){ cnt+=p; vector<long long> res; long long pw=2; while (cnt-pw+2>1) { res.push_back(cnt-pw+2); pw*=2; } res.push_back(1); reverse(res.begin(), res.end()); return make_pair(p, res); } std::pair<long long, std::vector<long long>> leave(long long p){ cnt-=p; vector<long long> res; long long pw=2; while (cnt-pw+2>1) { res.push_back(cnt-pw+2); pw*=2; } res.push_back(1); reverse(res.begin(), res.end()); return make_pair(p, res); }
#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...