제출 #561358

#제출 시각아이디문제언어결과실행 시간메모리
561358AlperenT던전 (IOI21_dungeons)C++17
11 / 100
7103 ms26648 KiB
#include "dungeons.h" #include <bits/stdc++.h> using namespace std; int n; vector<int> s, p, w, l; void init(int n_, vector<int> s_, vector<int> p_, vector<int> w_, vector<int> l_){ n = n_, s = s_, p = p_, w = w_, l = l_; return; } long long simulate(int v, int z){ while(v != n){ if(z >= s[v]) z += s[v], v = w[v]; else z += p[v], v = l[v]; } 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...