| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 70607 | mr_banana | 저울 (IOI15_scales) | C++17 | 4 ms | 636 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "scales.h"
#include<bits/stdc++.h>
using namespace std;
void init(int T) {
    /* ... */
}
bool cmp(int x,int y){
    for(int i=1;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);
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
