제출 #696442

#제출 시각아이디문제언어결과실행 시간메모리
696442Elvin_Fritl콤보 (IOI18_combo)C++17
10 / 100
96 ms436 KiB
#include "combo.h" using namespace std; string guess_sequence(int n) { string p = ""; string s="ABXY"; for(int i=0;i<n;i++){ for(int j=0;j<4;j++){ string p1=p+s[j]; if(press(p1)==p1.size()){ p=p1; break; } } } return p; }

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

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:9:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |         if(press(p1)==p1.size()){
      |            ~~~~~~~~~^~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...