제출 #411246

#제출 시각UTC-0아이디문제언어결과실행 시간메모리
4112462021-05-24 20:14:29nxteru저울 (IOI15_scales)C++14
71.43 / 100
1 ms296 KiB
#include "scales.h"
#include <bits/stdc++.h>
using namespace std;
void init(int T) {
/* ... */
}
void orderCoins() {
vector<int>a[6];
a[2].push_back(getLightest(1,2,3));
for(int i=1;i<=3;i++){
if(i!=a[2][0])a[3].push_back(i);
}
a[3].push_back(getHeaviest(4,5,6));
for(int i=4;i<=6;i++){
if(i!=a[3][2])a[2].push_back(i);
}
a[0].push_back(getLightest(a[2][0],a[2][1],a[2][2]));
a[5].push_back(getHeaviest(a[3][0],a[3][1],a[3][2]));
for(auto i:a[2])if(i!=a[0][0])a[1].push_back(i);
for(auto i:a[3])if(i!=a[5][0])a[1].push_back(i);
a[2].clear();
a[3].clear();
a[4].push_back(getHeaviest(a[1][0],a[1][1],a[1][2]));
for(auto i:a[1])if(i!=a[4][0])a[2].push_back(i);
a[1].clear();
a[1].push_back(getLightest(a[2][0],a[2][1],a[2][2]));
for(auto i:a[2])if(i!=a[1][0])a[3].push_back(i);
a[2].clear();
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

컴파일 시 표준 에러 (stderr) 메시지

scales.cpp: In function 'void init(int)':
scales.cpp:5:15: warning: unused parameter 'T' [-Wunused-parameter]
    5 | void init(int T) {
      |           ~~~~^
#Verdict Execution timeMemoryGrader output
Fetching results...