| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1363819 | yyc000123 | Toy Design (EGOI22_toydesign) | C++20 | 39 ms | 660 KiB |
#include<bits/stdc++.h>
using namespace std ;
#define F first
#define S second
const int N = 205 ;
int n ;
vector<pair<int,int>> edges ;
int main(){
cin >> n ;
for(int i=1 ; i<=n ; i++){
for(int j=i+1 ; j<=n ; j++){
cout << "? " << '0' << ' ' << i << ' ' << j << endl ;
int k ; cin >> k ;
if(!k) edges.push_back({i,j}) ;
}
}
cout << "! " << edges.size() << endl ;
for(auto it:edges) cout << it.F << ' ' << it.S << endl ;
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... | ||||
