#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
#define ll long long
#define pb push_back
vector<pair<int,int>> Alice(){
ll n = 100;
ll x = setN(n);
vector<pair<int,int>> tree;
for (int i = 2; i < n; i++) {
tree.pb({i+1, x % i + 1});
}
return tree;
}
#include <bits/stdc++.h>
#include "Bob.h"
using namespace std;
#define ll long long
ll Bob(vector<pair<int,int>> V){
ll ans = 1, d = 1, cnt = 0;
for (auto [rem, div] : V) {
if (rem > div) swap(rem, div);
rem--; div--;
while (ans % div != rem) {
ans += d;
}
d = lcm(d, div);
}
return ans;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |
| # | Verdict | Execution time | Memory | Grader output |
|---|
| Fetching results... |