Submission #906238

#TimeUsernameProblemLanguageResultExecution timeMemory
906238vjudge1Lost in the cycle (IOI19_cycle)C++17
33 / 100
1 ms344 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; rep(d,1,32){ ll dd = 1<<d; int j = (n+dd-1)/dd; 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...