| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1363834 | biserailieva | Find the Box (EGOI23_findthebox) | C++20 | 0 ms | 344 KiB |
#include <bits/stdc++.h>
using namespace std;
int main()
{
int h, w;
cin>>h>>w;
for(int i=0;i<h;i++)
{
string s="";
for(int j=0;j<i;j++)
{
s+='v';
}
for(int j=0;j<w;j++)
{
s+='>';
}
cout<<"? "<<s<<endl;
int r, c;
cin>>r>>c;
if(c<w-1)
{
cout<<"! "<<r<<' '<<c<<endl;
break;
}
if(r<i)
{
cout<<"! "<<r<<' '<<w-1<<endl;
break;
}
}
return 0;
}
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
| # | 결과 | 실행 시간 | 메모리 | 채점기 출력 |
|---|---|---|---|---|
| 결과를 불러오는 중입니다… | ||||
