# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1169289 | catch_me_if_you_can | Arranging Shoes (IOI19_shoes) | C++20 | 65 ms | 22852 KiB |
#include<bits/stdc++.h>
#define int long long
#include "shoes.h"
using namespace std;
#define in array<int, 2>
#define pb push_back
#define pob pop_back
#define INF (int)1e17
#define MX (int)3e5+5
#define fast() ios_base::sync_with_stdio(false); cin.tie(NULL)
struct fenwick
{
vector<int> val;
int N;
void init(int n)
{
N = n+5;
val.assign(N, 0);
return;
}
int sum(int x)
{
int ret = 0;
for(int t = x; t; t-=(t&-t))
ret+=val[t];
return ret;
}
void upd(int x)
{
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |