Submission #906239

#TimeUsernameProblemLanguageResultExecution timeMemory
906239vjudge1Lost in the cycle (IOI19_cycle)C++17
100 / 100
1 ms596 KiB
#include "cycle.h" #include <bits/stdc++.h> using namespace std; #define rep(i, a, b) for(int i = a; i < (b); ++i) #define all(x) begin(x), end(x) #define sz(x) (int)(x).size() #define F first #define S second #define pb push_back typedef long long ll; typedef pair<int, int> pii; typedef vector<int> vi; void escape(int n) { bool init = jump(0); int last = 1+n/2; for(int p = 30; p>=0; p--){ int j = 1<<p; if(j>=n) continue; int u = j; if(!init){ u = (n-last+j)%n; } last=j; init=jump(u); } if(!init)jump(n-last); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...