# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
642726 | MadokaMagicaFan | Traffickers (RMI18_traffickers) | C++17 | 3590 ms | 22872 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" */
#include <iostream>
#include <vector>
/* #define ONPC */
#define sz(v) ((int)(v.size()))
#define pb push_back
#pragma GCC optimize("O1,O2,O3,Ofast,unroll-loops")
/* #pragma GCC target("avx,avx2,fma") */
/* #pragma GCC target("popcnt") */
using ll = long long;
using namespace std;
struct aib{
int *f;
int n;
aib (int _n) {
f = (int *)malloc(_n*sizeof(int));
/* f.assign(_n, 0); */
n = _n;
}
void add(int x, int v) {
for (; x < n; x |= (x+1))
f[x] += v;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |