| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 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;
}
}
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
