# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1156107 | aarb_.tomatexd | Scales (IOI15_scales) | C++20 | 0 ms | 320 KiB |
#include <bits/stdc++.h>
#include "scales.h"
using namespace std;
void init(int t) {}
void orderCoins() {
int A = getMedian(1, 2, 3);
int B = getMedian(4, 5, 6);
int C = getNextLightest(1, 4, 5, A);
int D = getNextLightest(2, 4, 6, B);
int E = getHeaviest(3, D, C);
int F = getLightest(A, B, E);
int finalOrder[6] = {F, C, A, B, D, E};
answer(finalOrder);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |