제출 #302072

#제출 시각아이디문제언어결과실행 시간메모리
302072Molukhyyeh콤보 (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; }

컴파일 시 표준 에러 (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...