# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1063368 | 2024-08-17T17:24:08 Z | alexdd | Magic Show (APIO24_show) | C++17 | 0 ms | 0 KB |
#include <bits/stdc++.h> #include "Alice.h" using namespace std; std::vector<std::pair<int,int>> Alice() { int N = 4941; long long k = setN(N); vector<pair<int,int>> edges; for(int root=1;root<=N;root+=61) { for(int b=0;b<60;b++) { if(((1LL<<b)&k)) { edges.push_back({root,root+1+b}); } } } return edges; }