| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 | 
|---|---|---|---|---|---|---|---|
| 301756 | square1001 | 저울 (IOI15_scales) | C++14 | 1 ms | 384 KiB | 
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "scales.h"
#include <vector>
using namespace std;
void init(int T) {
    /* ... */
}
void orderCoins() {
	int LA = getLightest(1, 2, 3);
	int LB = getLightest(4, 5, 6);
	int LC = getLightest(LA, LB, LA == 1 ? 2 : 1);
	vector<int> rank(6, 1);
	rank[LC - 1] = 0;
	for(int i = 1; i <= 6; ++i) {
		for(int j = 1; j < i; ++j) {
			if(i != LC && j != LC) {
				int res = getHeaviest(i, j, LC);
				++rank[res - 1];
			}
		}
	}
	vector<int> iperm(6);
	for(int i = 0; i < 6; ++i) {
		iperm[rank[i]] = i + 1;
	}
	int W[6] = {iperm[0], iperm[1], iperm[2], iperm[3], iperm[4], iperm[5]};
	answer(W);
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
