# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
129681 | jhnah917 | 조개 줍기 (KOI17_shell) | C++14 | 604 ms | 44696 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>
using namespace std;
typedef long long ll;
int n;
struct BIT{
ll tree[1515];
void update(int l, int r, int v){
for(; l<=n; l+=l&-l) tree[l] += v;
for(r++; r<=n; r+=r&-r) tree[r] -= v;
}
ll query(int x){
ll ret = 0;
for(; x; x^=x&-x) ret += tree[x];
return ret;
}
} tree[1515];
int arr[1515][1515];
int dp[1515][1515];
ll ans = 0;
int s[1515], e[1515];
inline ll get(int i, int j){
return dp[i][j] + tree[i].query(j);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |