답안 #688326

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
688326 2023-01-27T10:09:20 Z saayan007 Lost in the cycle (IOI19_cycle) C++17
0 / 100
0 ms 208 KB
#include "cycle.h"
#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using pi = pair<int, int>;
using pl = pair<long long, long long>;
using vi = vector<int>;
using vl = vector<long long>;
using vpi = vector<pair<int, int>>;
using vpl = vector<pair<long long, long long>>;

#define fur(i, a, b) for(ll i = a; i <= (ll)b; ++i)
#define ruf(i, a, b) for(ll i = a; i >= (ll)b; --i)
#define fr first 
#define sc second
#define mp make_pair
#define pb emplace_back
#define nl "\n"
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()

void escape(int n) {
    if(n == 2) {
        jump(1);
        return;
    }
    ll cur = 0;
    if(jump(1)) {
        cur += 1;
        while(jump(1)) {
            cur += 1;
        }
        jump(n - 2);
    } else {
        ++cur;
        while(!jump(1)) {
            ++cur;
        }
        ++cur;
        cur += n/2 - 1;
    }
    return;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 208 KB The exit was not found.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 208 KB The exit was not found.
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 208 KB The exit was not found.
2 Halted 0 ms 0 KB -