Submission #297859

#TimeUsernameProblemLanguageResultExecution timeMemory
297859DovranRoller Coaster Railroad (IOI16_railroad)C++11
0 / 100
72 ms7416 KiB
#include <bits/stdc++.h> #define N 200009 #define pii pair <int, int> #define ff first #define sz() size() #define ss second #define pb push_back #define ll long long using namespace std; int n, m; ll plan_roller_coaster(vector<int>a, vector<int>b){ int n=a.size(); ll ans=1; for(int i=0; i<n; i++){ if(b[i]<=a[i+1] and i<n-1) ans=0; } return ans; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...