| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1368870 | ezzzay | Find the Box (EGOI23_findthebox) | C++20 | 1 ms | 412 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;
}
}
}| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
