제출 #542863

#제출 시각아이디문제언어결과실행 시간메모리
542863AJ00던전 (IOI21_dungeons)C++17
11 / 100
7075 ms26656 KiB
#include "dungeons.h" #include <bits/stdc++.h> using namespace std; //#define int long long int N; vector<int> s,p,w,l; long long int simulate(int x, int z){ //long long int moves = 0; while(x != N){ //moves++; if (z >= s[x]){ z += s[x]; x = w[x]; } else { z += p[x]; x = l[x]; } } return z; } void init(int n, vector<int> _s, vector<int> _p, vector<int> _w,vector<int> _l){ s = _s; p = _p; w = _w; l = _l; N = n; }
#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...