Submission #282085

#TimeUsernameProblemLanguageResultExecution timeMemory
282085Pichon5Scales (IOI15_scales)C++17
0 / 100
1 ms384 KiB
#include<bits/stdc++.h> #include "scales.h" using namespace std; void init(int T) { /* ... */ } void orderCoins() { /* ... */ int W[] = {1, 2, 3, 4, 5, 6}; vector<pair<int,int> >v; for(int i=0;i<=6;i++){ v.push_back({0,i}); } for(int i=1;i<=6;i++){ for(int l=1;l<=6;l++){ if(i==l){ continue; } for(int j=1;j<=6;j++){ if(j==i or j==l){ continue; } int x=getHeaviest(i,l,j); v[x].first++; } } } sort(v.begin(),v.end()); for(int i=1;i<=6;i++){ W[i-1]=v[i].second; } answer(W); }

Compilation message (stderr)

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