# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
358224 | juggernaut | 저울 (IOI15_scales) | C++14 | 0 ms | 0 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include"scales.h"
#include<bits/stdc++.h>
using namespace std;
void init(int T){}
void ordercoins(){
int a=getLightest(1,2,3);
int f=getHeaviest(4,5,6);
int b=1+(a<=1),c=2+(a<=2);
int d=4+(f<=4),e=5+(f<=5);
int aa=getLightest(a,d,e);
int ff=getHeaviest(f,b,c);
if(aa==d)swap(a,d);
if(aa==e)swap(a,e);
if(ff==b)swap(f,b);
if(ff==c)swap(f,c);
int bb=getLightest(b,c,d);
if(bb==c)swap(b,c);
if(bb==d)swap(b,d);
bb=getLightest(b,d,e);
if(bb==e)swap(b,e);
int ee=getHeaviest(c,d,e);
if(ee==c)swap(e,c);
if(ee==d)swap(e,d);
int cc=getLightest(c,d,e);
if(cc==d)swap(c,d);
int W[]={a,b,c,d,e,f};
answer(W);
}