# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
778056 | Jarif_Rahman | Scales (IOI15_scales) | C++17 | 1 ms | 300 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "scales.h"
#include <bits/stdc++.h>
#define pb push_back
#define f first
#define sc second
using namespace std;
typedef long long int ll;
typedef string str;
void init(int T){
}
void orderCoins(){
int w[6] = {1, 2, 3, 4, 5, 6};
/* determine heaviest */{
int a = getHeaviest(1, 2, 3), b = getHeaviest(4, 5, 6);
int c = 1;
if(c == a) c = 2;
int d = getHeaviest(a, b, c);
if(d != 6) swap(w[d-1], w[5]);
}
sort(w, w+5, [&](int a, int b){
return getLightest(a, b, w[5]) == a;
});
answer(w);
}
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |