제출 #1368870

#제출 시각아이디문제언어결과실행 시간메모리
1368870ezzzayFind the Box (EGOI23_findthebox)C++20
20 / 100
1 ms412 KiB
#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
signed main(){
    int n,m;
    cin>>n>>m;
    for(int i=0;i<n;i++){
        cout<<"? ";
        for(int j=0;j<=i-1;j++){
            cout<<"v";
        }
        for(int j=0;j<m;j++){
            cout<<'>';
        }
        cout<<endl;
        int y,x;
        cin>>y>>x;
        if(y==i and x==m-1)continue;
        if(y!=i){
            cout<<"! "<<y+1<<" "<<0<<endl;
            return 0;
        }
        else{
            cout<<"! "<<y<<" "<<x+1<<endl;
            return 0;
        }
    }
}
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…
#결과 실행 시간메모리채점기 출력
결과를 불러오는 중입니다…