| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1285267 | AndriaBeridze | 저울 (IOI15_scales) | C++20 | 1 ms | 332 KiB |
#include <bits/stdc++.h>
#include "scales.h"
using namespace std;
void orderCoins() {
int p[6] = {1, 2, 3, 4, 5, 6};
for (int i = 0; i < 6; i++) {
for (int j = 0; j < 4; j++) {
int a = getLightest(p[j], p[j + 1], p[j + 2]);
int b = getMedian(p[j], p[j + 1], p[j + 2]);
int c = p[j] + p[j + 1] + p[j + 2] - a - b;
// cout << a << ' ' << b << ' ' << c << endl;
p[j] = a;
p[j + 1] = b;
p[j + 2] = c;
}
}
answer(p);
}
void init(int T) {
while (T--) {
orderCoins();
}
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
