| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1365630 | stanirina | Scales (IOI15_scales) | C++20 | 0 ms | 344 KiB |
#include "scales.h"
#include <bits/stdc++.h>
using namespace std;
void init(int T) {
/* ... */
}
void orderCoins() {
int a,b,c,d,e,f;
c=getHeaviest(1,2,3);
f=getHeaviest(4,5,6);
a=getLightest(1,2,3);
d=getLightest(4,5,6);
b=6-a-c;
e=4+5+6-f-d;
if(getHeaviest(c,f,a)==c)swap(f,c);
if(getHeaviest(b,e,a)==b)swap(b,e);
if(getLightest(a,d,b)==d)swap(a,d);
int W[] = {a,d,b,e,c,f};
answer(W);
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
