# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1092806 | alexander707070 | Boat (APIO16_boat) | C++14 | 2062 ms | 326900 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>
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#define MAXN 507
using namespace std;
const long long mod=1e9+7;
int n,a[MAXN],b[MAXN];
vector<int> pos;
map<int,bool> mp;
unordered_map<int,int> where;
pair<int,int> s[MAXN];
long long dp[2][1000007];
long long pref[2][1000007];
long long sum(int id,int from,int to){
if(from>to)return 0;
if(from>0)return (pref[id][to]-pref[id][from-1]);
return pref[id][to];
}
int main(){
ios_base::sync_with_stdio(0);
cin.tie(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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |