Submission #133793

#TimeUsernameProblemLanguageResultExecution timeMemory
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); }

Compilation message (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...