제출 #375252

#제출 시각아이디문제언어결과실행 시간메모리
375252Edbert2397콤보 (IOI18_combo)C++14
0 / 100
2 ms200 KiB
#include "combo.h" #include<bits/stdc++.h> using namespace std; std::string guess_sequence(int N) { char s[4] = {'A','B','X','Y'}; do{ string p = ""; for(int i = 0;i<3;i++){ p += s[i]; } int coins = press(p); if(coins == N){ return p; } }while(next_permutation(s,s + 4)); }

컴파일 시 표준 에러 (stderr) 메시지

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
   19 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...