제출 #415134

#제출 시각아이디문제언어결과실행 시간메모리
415134aris12345678콤보 (IOI18_combo)C++14
5 / 100
6 ms408 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; const int mxN = 2005; string guess_sequence(int n) { string comb = "AABBXXYY"; for(int i = 0; i < (int) comb.length(); i++) { for(int j = 0; j < (int) comb.length(); j++) { for(int k = 0; k < (int) comb.length(); k++) { string p; p += comb[i], p += comb[j], p += comb[k]; if(press(p) == 3) return p; } } } assert(true); }

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

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:8:19: warning: control reaches end of non-void function [-Wreturn-type]
    8 |     string comb = "AABBXXYY";
      |                   ^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...