제출 #1006698

#제출 시각아이디문제언어결과실행 시간메모리
1006698devariaota콤보 (IOI18_combo)C++17
0 / 100
0 ms344 KiB
#include "combo.h" #include <bits/stdc++.h> using namespace std; #define all(x) x.begin(), x.end() string guess_sequence(int n) { string S = "ABXY"; for (char a = 0; a < 4; a++) for (char b = 0; b <4; b++) for (char c = 0; c < 4; c++) { string res; res += S[a] + S[b] + S[c]; int x = press(res); if (x == 3) { return res; } } } // string guess_sequence(int N) { // string permu = "AAAABBBBXXXXYYYY"; // do { // cout << permu << endl; // } while (next_permutation(all(permu))); // }

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

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