# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
446103 | Ronin13 | Fountain (eJOI20_fountain) | C++14 | 309 ms | 24656 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<bits/stdc++.h>
#define ll long long
#define f first
#define s second
#define pii pair<int,int>
#define pll pair<ll,ll>
#define ull unsigned ll
#define epb emplace_back
#define pb push_back
#define inf 1e9+1
#define linf 1e18+1
using namespace std;
void solve(){
int n;cin>>n;
int q;cin>>q;
int c[n+2],d[n+2];
for(int i=1;i<=n;i++){
cin>>d[i]>>c[i];
}
stack<int>st;
st.push(n+1);
d[n+1]=2*inf+1;
int next[n+2][22];
int water[n+2][22];
next[n+1][0]=n+1;
int par[n+2];
for(int i=1;i<=n+1;i++){
par[i]=0;
}
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... |