제출 #1042950

#제출 시각아이디문제언어결과실행 시간메모리
1042950Dan4Life던전 (IOI21_dungeons)C++17
11 / 100
7064 ms26784 KiB
#pragma GCC optimize("O3,unroll-loops") #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt") #include "dungeons.h" #include <bits/stdc++.h> using namespace std; #define pb push_back #define sz(a) (int)a.size() #define all(a) begin(a),end(a) using vi = vector<int>; using ll = long long; vi s,p,w,l; int n; void init(int N, vi s, vi p, vi w, vi l) { n = N; ::s=s,::p=p,::w=w,::l=l; return; } ll simulate(int x, int z) { ll strength = z; while(x!=n){ if(s[x]>strength) strength+=p[x], x=l[x]; else strength+=s[x], x=w[x]; } return strength; }
#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...