| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1361148 | 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 << "! " << min(a, b) << " " << max(a, b) << endl;
}
void solve() {
int n;
cin >> n;
int x1 = ask("001");
int x2 = ask("010");
int x3 = ask("100");
if(x1 == 1){
answer(0, 1);
}
if(x2 == 1){
answer(0, 2);
}
if(x3 == 1){
answer(1, 2);
}
}
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... | ||||
