# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
331606 | oolimry | 조개 줍기 (KOI17_shell) | C++14 | 1157 ms | 44652 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 all(x) (x).begin(), (x).end()
using namespace std;
typedef pair<int,int> ii;
typedef long long lint;
int n, Q;
struct segment{
int tree[3005];
int N;
void init(int _N){
N = _N;
fill(tree,tree+2*N, 0);
}
void update(int l, int r, int v){
for(l += N, r += N+1;l < r;l >>= 1, r >>= 1){
if(l&1) tree[l++] += v;
if(r&1) tree[--r] += v;
}
}
int query(int i){
int res = 0;
for(i += N;i;i >>= 1) res += tree[i];
return res;
}
} seg[1505];
int arr[1505][1505];
int dp[1505][1505];
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |