# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
419100 | FlippenFaz | Arranging Shoes (IOI19_shoes) | C++14 | 813 ms | 163616 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 "shoes.h"
using namespace std;
typedef long long ll;
#define SIZE 524288
map<ll, queue<int>> shoesList;
vector<ll> offset;
vector<ll> decSet;
void incOff(int pos) {
pos+=SIZE;
while (pos > 0) {
offset[pos]++;
pos/=2;
}
}
void decOff(int pos) {
pos+=SIZE;
while (pos > 0) {
decSet[pos]++;
offset[pos]--;
pos/=2;
}
}
ll getDec(int pos) {
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |