Submission #951470

#TimeUsernameProblemLanguageResultExecution timeMemory
951470hengliaoRainforest Jumps (APIO21_jumps)C++17
4 / 100
589 ms9128 KiB
#include<bits/stdc++.h> using namespace std; #define F first #define S second #define pb push_back #define vll vector<ll> #define pll pair<ll, ll> typedef long long ll; const ll mxN=2e5+5; const ll inf=1e18; ll n; vll h; vll adj[mxN]; ll r[mxN]; ll l[mxN]; vll dis; void init(int tn, vector<int> th){ n=tn; h.resize(n); for(ll i=0;i<n;i++){ h[i]=th[i]; } } int minimum_jumps(int a, int b, int c, int d){ return c-b; } /*int main(){ ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, q; cin>>n>>q; int h[n]; for(ll i=0;i<n;i++){ cin>>h[i]; } init(n, h); for(ll i=0;i<q;i++){ int a, b, c, d; cin>>a>>b>>c>>d; cout<<minimum_jumps(a, b, c, d)<<'\n'; } return 0; }*/
#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...
#Verdict Execution timeMemoryGrader output
Fetching results...