| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 623467 | MohamedFaresNebili | Dungeons Game (IOI21_dungeons) | C++17 | 7050 ms | 19756 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int N;
vector<int> S, P, W, L;
long long solve(int i, int k) {
if(i == N) return k;
if(k >= S[i]) return solve(W[i], k + S[i]);
return solve(L[i], k + P[i]);
}
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;
}
long long simulate(int x, int z) {
return solve(x, z);
}| # | 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... | ||||
