| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 499065 | Khizri | Dungeons Game (IOI21_dungeons) | C++17 | 1304 ms | 2097156 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 "dungeons.h"
#include <vector>
#include <bits/stdc++.h>
using namespace std;
vector<int>s,p,w,l;
int n;
long long funk(int u,long long k){
if(u==n){
return k;
}
if(k>=s[u]){
funk(w[u],k+s[u]);
}
else{
funk(l[u],k+p[u]);
}
}
void init(int nn,vector<int> ss,vector<int> pp,vector<int> ww,vector<int> ll) {
n=nn;
s=ss,p=pp,w=ww,l=ll;
}
long long simulate(int x, int z) {
return funk(x,z);
}
Compilation message (stderr)
| # | 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... | ||||
