| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1353587 | yyc000123 | Find the Box (EGOI23_findthebox) | C++20 | 0 ms | 344 KiB |
#include<bits/stdc++.h>
using namespace std ;
const int N = 55 ;
int n , m , x , y ;
int main(){
cin >> n >> m ;
cout << "? " ;
for(int i=1 ; i<m ; i++) cout << '>' ;
cout << endl ;
cin >> x >> y ;
if(y!=m-1){
cout << "! 0 " << y+1 << endl ;
return 0 ;
}
for(int i=0 ; i<m ; i++){
cout << "? " ;
for(int j=1 ; j<n ; j++) cout << 'v' ;
cout << endl ;
cin >> x >> y ;
if(x==n-1) continue ;
cout << "! " << x+1 << ' ' << i << endl ;
break ;
}
return 0 ;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
