| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1363816 | yyc000123 | Toy Design (EGOI22_toydesign) | C++20 | 0 ms | 344 KiB |
#include<bits/stdc++.h>
using namespace std ;
#define F first
#define S second
const int N = 205 ;
int n , q ;
vector<pair<int,int>> edges ;
int main(){
cin >> n >> q ;
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}) ;
}
}
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... | ||||
