Submission #1069650

#TimeUsernameProblemLanguageResultExecution timeMemory
1069650edogawa_somethingA Light Inconvenience (CEOI23_light)C++17
5 / 100
783 ms1048576 KiB
#include "light.h" #include <vector> using namespace std; int cnt; vector<long long>v; void prepare(){ cnt = 1; v.push_back(1); } std::pair<long long, std::vector<long long>> join(long long p){ v.clear(); cnt+=p; v.clear(); for(int i=1;i<=cnt;i++) { if(i%5==1) v.push_back(i); } if(v.back()!=cnt) v.push_back(cnt); return {5*p,v}; } std::pair<long long, std::vector<long long>> leave(long long p){ cnt-=p; while(v.back()>cnt) v.pop_back(); if(v.back()!=cnt) v.push_back(cnt); return {5*p,v}; }
#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...