Submission #1242100

#TimeUsernameProblemLanguageResultExecution timeMemory
1242100KindaGoodGamesScales (IOI15_scales)C++20
0 / 100
0 ms320 KiB
#include "scales.h" #include<bits/stdc++.h> using namespace std; void init(int T) { /* ... */ } void orderCoins() { /* ... */ int lo = getLightest(1,2,3); lo = getLightest(lo,4,5); if(lo != 5){ lo = getLightest(lo,5,6); }else{ lo = getLightest(lo,4,6); } int pt = 1; int ans[] = {lo,-1,-1,-1,-1,-1}; for(int k = 0; k < 5; k++){ vector<int> notLo; for(int i = 1; i <= 6; i++){ if(i == lo) continue; notLo.push_back(i); } int nlo = getNextLightest(notLo[0],notLo[1],notLo[2],lo); nlo = getNextLightest(notLo[3],notLo[4],notLo[0],lo); lo = nlo; ans[pt++] = lo; } answer(ans); }
#Verdict Execution timeMemoryGrader output
Fetching results...