Submission #908713

#TimeUsernameProblemLanguageResultExecution timeMemory
908713Aiperiii콤보 (IOI18_combo)C++14
10 / 100
41 ms1456 KiB
#include <bits/stdc++.h>
#include "combo.h"
using namespace std;
string guess_sequence(int N) {
    string s="",t="ABXY";
    for(int j=0;j<N;j++){
        for(int i=0;i<t.size();i++){
            string x=s;
            x+=t[i];
            if(press(x)==x.size()){
                s=x;
                break;
            }
        }
    }
    return s;
}

Compilation message (stderr)

combo.cpp: In function 'std::string guess_sequence(int)':
combo.cpp:7:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    7 |         for(int i=0;i<t.size();i++){
      |                     ~^~~~~~~~~
combo.cpp:10:24: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |             if(press(x)==x.size()){
      |                ~~~~~~~~^~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...