Submission #1122997

#TimeUsernameProblemLanguageResultExecution timeMemory
112299712345678A Light Inconvenience (CEOI23_light)C++17
5 / 100
1120 ms920452 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; for (int i=1; i<cnt; i+=5) res.push_back(i); res.push_back(cnt); return make_pair(p, res); } std::pair<long long, std::vector<long long>> leave(long long p){ cnt-=p; vector<long long> res; for (int i=1; i<cnt; i+=5) res.push_back(i); res.push_back(cnt); return make_pair((long long) 4, 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...