제출 #763868

#제출 시각아이디문제언어결과실행 시간메모리
763868ind1v콤보 (IOI18_combo)C++11
5 / 100
1 ms336 KiB
#include <bits/stdc++.h> #include "combo.h" using namespace std; string guess_sequence(int n) { array<char, 4> c = {'A', 'B', 'X', 'Y'}; vector<string> candidates; for (int i = 0; i < 4; i++) { for (int j = 0; j < 4; j++) { for (int k = 0; k < 4; k++) { string s; s += c[i]; s += c[j]; s += c[k]; candidates.emplace_back(s); } } } for (auto &x : candidates) { int ans = press(x); if (ans == 3) { return x; } } }

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

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:8:18: warning: control reaches end of non-void function [-Wreturn-type]
    8 |   vector<string> candidates;
      |                  ^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...