제출 #443373

#제출 시각아이디문제언어결과실행 시간메모리
443373benedict0724던전 (IOI21_dungeons)C++17
11 / 100
7014 ms19744 KiB
#include "dungeons.h" #include <vector> using namespace std; typedef long long ll; vector<int> S, P, W, L; int N; void init(int n, std::vector<int> s, std::vector<int> p, std::vector<int> w, std::vector<int> l) { S = s; P = p; W = w; L = l; N = n; } long long simulate(int x, int z) { while(x != N) { if(z < S[x]) { z += P[x]; x = L[x]; } else { z += S[x]; x = W[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...