# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1063368 | alexdd | Magic Show (APIO24_show) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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;
}
#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;
}