# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
786620 | esomer | Scales (IOI15_scales) | C++17 | 1 ms | 468 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 "scales.h"
using namespace std;
typedef long long ll;
void init(int T){}
int W[6];
void eras(vector<int>& left, int val){
vector<int> nw;
for(int x : left){
if(x == val) continue;
nw.push_back(x);
}
left = nw;
}
void orderCoins(){
vector<int> left = {1, 2, 3, 4, 5, 6};
int curr = 0;
while((int)left.size() > 2){
int a = getLightest(left[0], left[1], left[2]);
if((int)left.size() == 3){
W[curr] = a;
curr++;
eras(left, a);
continue;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |