답안 #313677

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
313677 2020-10-16T14:52:00 Z baibhav26062008 콤보 (IOI18_combo) C++14
0 / 100
1 ms 200 KB
#include "combo.h"
#include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int i=0; i<(n); i++)

string guess_sequence(int N){
  string dir="ABXY";
  string ans="";
  REP(i,N){
	ans = "";
	ans+=dir[i];
	REP(j,N){
	  if (j == i) continue;
	  ans += dir[j];
	  cout << press(ans) << endl;
	  if (press(ans)==N){
		 cout << press(ans) << endl;
         cout << ans << endl;
	    return ans;
	  }
	}
  }
 return ans;
}
# 결과 실행 시간 메모리 Grader output
1 Runtime error 1 ms 200 KB Execution failed because the return code was nonzero
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Correct 0 ms 200 KB Output is correct
2 Incorrect 0 ms 200 KB Wrong Answer: wrong guess.
3 Halted 0 ms 0 KB -