# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
74477 | gs18115 | 조개 줍기 (KOI17_shell) | C++14 | 903 ms | 146608 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<iostream>
using namespace std;
typedef long long LL;
const LL MAXN=1510;
const LL n=2048;
LL FT[MAXN][n+10];
LL N;
void FI(const LL&i,LL j,const LL&dif)
{
if(i<=0||j<=0||i>N||j>N)
return;
for(;j<=n;j+=j&-j)
FT[i][j]+=dif;
return;
}
void FS(const LL&i,LL j,LL&SC)
{
SC=0;
if(i<=0||j<=0||i>N||j>N)
return;
for(;j>0;j=j&(j-1))
SC+=FT[i][j];
return;
}
LL arr[MAXN][MAXN];
LL dp[MAXN][MAXN];
LL S[MAXN],E[MAXN];
char C;
LL ch;
LL A,B;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |