| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1363626 | 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-i;j++)
{
s+='>';
}
cout<<"? "<<s<<endl;
int r, c;
cin>>r>>c;
if(c!=w-1)
{
cout<<"! "<<r<<' '<<c+1<<endl;
break;
}
else if(r!=i)
{
cout<<"! "<<r+1<<' '<<c<<endl;
break;
}
}
return 0;
}
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
