Submission #1069633

#TimeUsernameProblemLanguageResultExecution timeMemory
1069633AbitoA Light Inconvenience (CEOI23_light)C++17
0 / 100
1 ms432 KiB
#include "light.h" #include <bits/stdc++.h> #define pb push_back #define int long long using namespace std; const int N=705; bool a[N]; int n; void prepare(){ a[1]=1; n=1; } std::pair<long long, std::vector<long long>> join(long long p){ n+=p; memset(a,0,sizeof(a)); for (int i=1;i<=n;i+=4) a[i]=1; a[n]=1; vector<int> v; for (int i=1;i<=n;i++) if (a[i]) v.pb(i); return {p,v}; } std::pair<long long, std::vector<long long>> leave(long long p){ n-=p; memset(a,0,sizeof(a)); for (int i=1;i<=n;i+=4) a[i]=1; a[n]=1; vector<int> v; for (int i=1;i<=n;i++) if (a[i]) v.pb(i); return {5,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...