제출 #499066

#제출 시각아이디문제언어결과실행 시간메모리
499066Khizri던전 (IOI21_dungeons)C++17
11 / 100
7054 ms26656 KiB
#include "dungeons.h" #include <vector> #include <bits/stdc++.h> using namespace std; vector<int>s,p,w,l; int n; void init(int nn,vector<int> ss,vector<int> pp,vector<int> ww,vector<int> ll) { n=nn; s=ss,p=pp,w=ww,l=ll; } long long simulate(int x, int z) { while(x!=n){ if(z>=s[x]){ z+=s[x]; x=w[x]; } else{ z+=p[x]; x=l[x]; } } return z; }
#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...