| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1093818 | byunjaewoo | Magic Show (APIO24_show) | C++17 | 3 ms | 1012 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>
using namespace std;
#include "Alice.h"
vector<pair<int,int>> Alice(){
long long x=setN(5000);
vector<pair<int, int>> V;
for(int i=2; i<=5000; i++) V.push_back({i, x%(i-1)+1});
return V;
}#include <bits/stdc++.h>
using namespace std;
#include "Bob.h"
long long Bob(vector<pair<int,int>> V){
long long ret=0, lcm=1;
for(auto [u, v]:V) {
long long a=u-1, b=v-1;
while(ret%b!=a) ret+=lcm;
lcm=lcm*b/__gcd(lcm, b);
if(lcm<=0) break;
}
return ret;
}| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
