제출 #411101

#제출 시각아이디문제언어결과실행 시간메모리
411101Dipto_DebdipCombo (IOI18_combo)C++14
0 / 100
0 ms200 KiB
#include "combo.h"
#include "bits/stdc++.h"
using namespace std;
#define ll long long int
std::string guess_sequence(int N) {
  std::string p = "";
  for (int i = 0; i < 4 * N; ++i) {
    p += 'A';
  }
  std::vector<string> v = {"abx", "axb", "bax", "bxa", "xab", "xba", "aby", "ayb", "bay", "bya", "yab", "yba", "axy", "ayx", "xay", "xya", "yax", "yxa", "bxy", "byx", "xby", "xyb", "ybx", "yxb", "baa", "xaa", "yaa", "abb", "xbb", "ybb", "axx", "bxx", "yxx", "ayy", "byy", "xyy"};
  for (auto i : v) {
    ll g = press(i);
    if (g == N) {
      return i;
    }
  }
}

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

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