| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1368679 | hahaha | Dark Ride (EGOI25_darkride) | C++20 | 11 ms | 432 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define pb push_back
int n;
signed main(){
cin>>n;
int ansa=-1, ansb=-1;
int scream=0;
for (int i=0; i<n; i++) {
cout<<"? ";
for (int j=0; j<n; j++) {
if (i==j) cout<<"1";
else cout<<"0";
} cout<<endl;
cin>>scream;
if (scream==1) {
if (ansa==-1)ansa=i;
else ansb=i;
}
}
cout<<"! "<<ansa<<" "<<ansb<<endl;
}| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Result | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
