# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
475455 | GioChkhaidze | Addk (eJOI21_addk) | C++14 | 161 ms | 7736 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>
#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);
Compilation message (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... |