# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
475455 | GioChkhaidze | Addk (eJOI21_addk) | C++14 | 161 ms | 7736 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long
#define int long long
using namespace std;
const int N = 1e5 + 5;
int n, k, q, typ;
int a[N], b[N], c[N], A[N];
ll G[2 * N][4];
void upd(int x, ll dl) {
while (x <= 100000) {
G[x][typ] += dl;
x += (x & -x);
}
}
ll get(int x) {
ll res = 0;
while (x > 0) {
res += G[x][typ];
x -= (x & -x);
}
return res;
}
main() {
ios::sync_with_stdio(false);
cin.tie(NULL), cout.tie(NULL);
컴파일 시 표준 에러 (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... |