제출 #1282140

#제출 시각아이디문제언어결과실행 시간메모리
1282140cjspd_olyLost in the cycle (IOI19_cycle)C++17
100 / 100
1 ms400 KiB
#include "cycle.h" #include <bits/stdc++.h> using namespace std; void escape(int n) { int l = 0, r = n - 1; int prev = n; while (l < r) { int mid = (l + r + 1) / 2; int x = jump(max((mid - prev + n) % n, 1)); if (x) l = mid; else r = mid - 1; prev = mid; } jump((l - prev + n) % n); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...