제출 #836964

#제출 시각아이디문제언어결과실행 시간메모리
836964FulopMate던전 (IOI21_dungeons)C++17
11 / 100
7045 ms26700 KiB
#include "dungeons.h" #include <bits/stdc++.h> using namespace std; #define ll long long 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 re = z; for(; x != n;){ if(re >= s[x]){ re += s[x]; x = w[x]; } else { re += p[x]; x = l[x]; } } return re; }
#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...