| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1370038 | nedabekir05 | Dark Ride (EGOI25_darkride) | C++20 | 0 ms | 440 KiB |
#include <bits/stdc++.h>
using namespace std;
int query(string s) {
cout<<"?"<<s<<"\n"<<flush;
int ans;
cin>>ans;
return ans;
}
int main() {
ios::sync_with_stdio(false);
cin.tie(&cout);
int N;
cin >> N;
int res[2]={-1,-1};
int i=0;
if(query("100")==1){
res[i]=0;
i++;
}
if(query("010")==1){
res[i]=1;
i++;
}
if(query("001")==1){
res[i]=2;
}
cout<<"! "<<res[0]<<" "<<res[1]<<"\n"<<flush;
return 0;
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
