| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1361285 | chubyxdxd | Dark Ride (EGOI25_darkride) | C++20 | 0 ms | 344 KiB |
#include <bits/stdc++.h>
#define pb push_back
#define sc second
#define ff first
#define all(a) a.begin(),a.end()
#define mem(a,i) memset(a,i,sizeof a)
#define forr(i,n) for(int i=0;i<n;i++)
#define nl '\n'
using namespace std;
typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<int> vi;
int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int n;
cin>>n;
vector<int> v;
string s="";
for(int i=0;i<n;i++){
s+='0';
}
for(int i=0;i<n;i++){
s[i]='1';
cout<<"? "<<s<<endl;
int l;
cin>>l;
if(l%2==1){
v.pb(i);
}
}
cout<<"! "<<v[0]<<" "<<v.back()<<endl;
}
// pineapple
| # | 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... | ||||
