Submission #1060616

#TimeUsernameProblemLanguageResultExecution timeMemory
1060616MarwenElarbiA Light Inconvenience (CEOI23_light)C++17
5 / 100
325 ms428 KiB
#include <bits/stdc++.h> using namespace std; #include "light.h" #define ll long long #define fi first #define se second #define pb push_back vector<ll> cur; long long n=1; void prepare(){ cur.pb(1); } std::pair<long long, std::vector<long long>> join(long long p){ cur.clear(); n+=p; long long i=1; while(n-i+1>1){ cur.pb(n-i+1); i*=2; } cur.pb(1); sort(cur.begin(),cur.end()); return {p*5 , cur}; } std::pair<long long, std::vector<long long>> leave(long long p){ cur.clear(); n-=p; ll i=1; while(n-i+1>1){ cur.pb(n-i+1); i*=2; } cur.pb(1); sort(cur.begin(),cur.end()); return {p*5, cur}; }
#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...