| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1345022 | yc11 | Dungeons Game (IOI21_dungeons) | C++20 | 7092 ms | 19748 KiB |
#include<bits/stdc++.h>
using namespace std;
vector<int> s1;
vector<int> p1;
vector<int> w1;
vector<int> l1;
int N;
void init(int n, std::vector<int> s, std::vector<int> p, std::vector<int> w, std::vector<int> l) {
s1 = s;
p1 = p;
w1 = w;
l1 = l;
N = n;
return;
}
long long simulate(int x, int z) {
long long z1 = (long long ) z;
while (x!=N){
if (z1>=s1[x]){
z1+=s1[x];
x = w1[x];
}
else{
z1+=p1[x];
x = l1[x];
}
}
return (long long )z1;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
