제출 #65211

#제출 시각아이디문제언어결과실행 시간메모리
65211kylych03저울 (IOI15_scales)C++14
33.33 / 100
4 ms664 KiB
#include "scales.h" //#include "grader.cpp" #include <bits/stdc++.h> using namespace std; void init(int T) { /* ... */ //orderCoins(); } void orderCoins() { /* ... */ int W[] = {1, 2, 0, 0, 5, 6}; int b=getMedian(1,2,3); int c=getHeaviest(1,2,3); int a=getLightest(1,2,3); int b1=getMedian(4,5,6); int c1=getHeaviest(4,5,6); int a1=getLightest(4,5,6); W[0]=getLightest(a,b,a1); W[5]=getHeaviest(c,c1,b); if(W[0]==a) W[1]=getLightest(c,b,a1); else W[1]=getLightest(a,b,b1); if(W[5]==c) W[4]=getHeaviest(a,c1,b); else W[4]=getHeaviest(b,c,b1); int ar[1000]; for(int i=1;i<=6;i++) ar[i]=0; for(int i=0;i<6;i++) ar[W[i]]=1; a=0; for(int i=1;i<=6;i++) if(ar[i]==0){ if(a==0) a=i; else b=i; } W[3]=getHeaviest(a,W[0],b); if(W[3]==a) W[2]=b; else W[2]=a; answer(W); }

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

In file included from grader.c:2:0:
graderlib.c: In function 'void answer(int*)':
graderlib.c:53:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (_ghksjhdfkae19ga_ > 1) 
     ^~
graderlib.c:56:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  for (i = 0; i < 6; i++) {
  ^~~
scales.cpp: In function 'void init(int)':
scales.cpp:5:15: warning: unused parameter 'T' [-Wunused-parameter]
 void init(int T) {
               ^
#Verdict Execution timeMemoryGrader output
Fetching results...