# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
70606 | mr_banana | Scales (IOI15_scales) | C++17 | 6 ms | 1672 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 "scales.h"
#include<bits/stdc++.h>
using namespace std;
void init(int T) {
/* ... */
}
bool cmp(int x,int y){
for(int i=0;i<3;i++){
if(x!=i && y!=i){
int ans=getLightest(x,y,i);
if(ans==i){
ans=getHeaviest(x,y,i);
return ans==y;
}
else{
return ans==x;
}
}
}
}
void orderCoins() {
int w[6]={1,2,3,4,5,6};
sort(w,w+6,cmp);
/*int ind1=getLightest(1,2,3),ind2=getLightest(4,5,6),ind3=getHeaviest(1,2,3),ind4=getHeaviest(4,5,6);
int mx=getHeaviest(ind1,ind4,ind3);
int ind5=6-ind1-ind3,ind6=15-ind2-ind4;
int w[6];
if(mn==ind3){
int ans1=getNextLightest(ind1,ind3,ind5,ind2),ans2=getNextLightest(ind1,ind3,ind5,ind4),ans3=getNextLightest(ind1,ind3,ind5,ind6);
}
else{
}*/
answer(w);
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |