| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1362601 | opeleklanos | Magic Show (APIO24_show) | C++20 | 0 ms | 0 KiB |
#include <iostream>
#include <vector>
using namespace std;
#include "Alice.h"
vector<pair<int, int>> Alice(){
int x = setN(5000);
vector<pair<int, int>> ans;
for(int i = 1; i<=5000; i++){
if(i!=x) ans.push_back({x, i});
}
return ans;
}#include <iostream>
#include <vector>
using namespace std;
#include "Bob.h"
int Bob(vector<pair<int, int>> edges){
int a = edges[0].first;
int b = edges[0].second;
int c = edges[1].first;
int d = edges[1].second;
if(a == c) return a;
if(b == c) return b;
if(a == d) return a;
if(b == d) return b;
}