제출 #1361421

#제출 시각아이디문제언어결과실행 시간메모리
1361421imchyDark Ride (EGOI25_darkride)C++20
9 / 100
0 ms424 KiB
#include <bits/stdc++.h>

using namespace std;

int main(){
    int n;
    cin>>n;
    vector<char> s(n, 0);

    pair<int, int> ans={0,0};
    
    cout<<"?110"<<endl;
    cin>>n;
    if(n==2){
        ans.first=0;
        ans.second=1;
    }

    cout<<"?101"<<endl;
    cin>>n;
    if(n==2){
        ans.first=0;
        ans.second=2;
    }

    cout<<"?011"<<endl;
    cin>>n;
    if(n==2){
        ans.first=2;
        ans.second=1;
    }

    cout<<"!"<<ans.first<<" "<<ans.second<<endl;

    return 0;
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…