제출 #1003038

#제출 시각아이디문제언어결과실행 시간메모리
1003038irmuun던전 (IOI21_dungeons)C++17
11 / 100
7093 ms26728 KiB
#include<bits/stdc++.h> //#include "dungeons.h" using namespace std; #define ll long long #define pb push_back #define ff first #define ss second #define all(s) s.begin(),s.end() #define rall(s) s.rbegin(),s.rend() 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; } ll simulate(int x,int z){ while(x<n){ if(z>=s[x]){ z+=s[x]; x=w[x]; } else{ z+=p[x]; x=l[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...