Submission #302072

#TimeUsernameProblemLanguageResultExecution timeMemory
302072MolukhyyehCombo (IOI18_combo)C++14
0 / 100
1 ms200 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; string guess_sequence(int N) { string p = ""; int coins = press(p); string S = "ABX"; if(N == 3){ do{ if(press(S) == 3)return S; }while(next_permutation(S.begin(), S.end())); S = "ABY"; do{ if(press(S) == 3)return S; }while(next_permutation(S.begin(), S.end())); S = "BXY"; do{ if(press(S) == 3)return S; }while(next_permutation(S.begin(), S.end())); S = "AXY"; do{ if(press(S) == 3)return S; }while(next_permutation(S.begin(), S.end())); } return S; }

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:8:7: warning: unused variable 'coins' [-Wunused-variable]
    8 |   int coins = press(p);
      |       ^~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...