제출 #133793

#제출 시각아이디문제언어결과실행 시간메모리
133793Runtime_error_Scales (IOI15_scales)C++14
0 / 100
6 ms508 KiB
#include "scales.h"
#include <bits/stdc++.h>
using namespace std;
int mn = 1;

void init(int T) {

}

bool cmp(int x,int y){

    int tmp = getHeaviest(mn,x,y);
    return (tmp == y);
}

void orderCoins() {
    int W[] = {1, 2, 3, 4, 5, 6};
    mn = getLightest( 1 , getLightest(1,2,3) , getLightest(4,5,6) );
    for(int i=1;i<6;i++)
        if(W[i] == mn)
            swap(W[i],W[0]);

    sort(W+1,W+6,cmp);
    answer(W);
}

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

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