# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1029735 | gs25 | 조개 줍기 (KOI17_shell) | C++17 | 115 ms | 51840 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int n;
const int MAXN = 1600;
ll ans;
struct BIT{
int N; ll v[MAXN] = {0,};
BIT(int N): N(N) {}
void update(int pos, int val){
while(pos<=N) v[pos]+=val, pos += pos&-pos;
}
ll query(int pos){
if(pos<=0) return 0;
if(pos>N) pos = N;
ll re = 0;
while(pos){
re += v[pos], pos -= pos&-pos;
}
return re;
}
};
ll dp[MAXN][MAXN];
int a[MAXN][MAXN];
int chk[MAXN][2];
vector<BIT> dp1;
const ll inf = 9999;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |