제출 #1223239

#제출 시각아이디문제언어결과실행 시간메모리
1223239chinesegenius69420Dungeons Game (IOI21_dungeons)C++20
11 / 100
7092 ms19780 KiB
#include "dungeons.h" #include <bits/stdc++.h> using namespace std; typedef long long ll; 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) { int actdun = x, actpow = z; while(actdun != n){ if(actpow >= s[actdun]){ actpow += s[actdun]; actdun = w[actdun]; continue; } actpow += p[actdun]; actdun = l[actdun]; } return actpow; }
#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...