# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1159135 | alexander707070 | 송금 (JOI19_remittance) | C++20 | 0 ms | 320 KiB |
#include<bits/stdc++.h>
#define MAXN 1000007
using namespace std;
int n;
long long a[MAXN],b[MAXN],s[2*MAXN],c[MAXN];
long long power[MAXN];
bitset<2*MAXN> bits,t;
void add(int x){
while(bits[x]==1){
bits[x]=0; x++;
}
bits[x]=1;
}
void rem(int x){
while(bits[x]==0){
bits[x]=1; x++;
if(x>2000000){
cout<<"No\n";
exit(0);
}
}
bits[x]=0;
}
컴파일 시 표준 에러 (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... |