Submission #1069981

#TimeUsernameProblemLanguageResultExecution timeMemory
1069981AbitoA Light Inconvenience (CEOI23_light)C++17
0 / 100
1 ms344 KiB
#include "light.h" #include <bits/stdc++.h> #define pb push_back #define int long long using namespace std; const int N=5005; 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; vector<int> v; for (int i=1;i<n;i+=35) v.pb(i); v.pb(n); return {35,v}; } std::pair<long long, std::vector<long long>> leave(long long p){ n-=p; vector<int> v; for (int i=1;i<n;i+=35) v.pb(i); v.pb(n); return {35,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...