| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1361151 | uranhishig | Dark Ride (EGOI25_darkride) | C++20 | 0 ms | 420 KiB |
#include <bits/stdc++.h>
using namespace std;
#define int long long
int ask(string s) {
int ans;
cout << "? " << s << endl;
cin >> ans;
return ans;
}
void answer(int a, int b) {
cout << "! " << a << " " <<b << endl;
}
void solve() {
int n;
cin >> n;
if (ask("110") == 2) {
answer(0, 1);
return;
}
if (ask("101") == 2) {
answer(0, 2);
return;
}
if (ask("011") == 2) {
answer(1, 2);
return;
}
}
signed main() {
solve();
return 0;
}
| # | 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... | ||||
