Submission #524937

#TimeUsernameProblemLanguageResultExecution timeMemory
524937Leonardo_PaesDungeons Game (IOI21_dungeons)C++17
11 / 100
7103 ms23784 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 X, int Z){ long long x = X, z = 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...