# | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1202301 | jk410 | Magic Show (APIO24_show) | C++20 | 0 ms | 0 KiB |
#include <bits/stdc++.h>
#include "Alice.h"
using namespace std;
typedef long long ll;
vector<pair<int,int>> Alice(){
ll x = setN(5000);
vector<pair<int,int>> ret;
for (int i=2; i<=5000; i++)
ret.push_back({i,x%i+1});
return ret;
}
#include <bits/stdc++.h>
#include "Bob.h"
using namespace std;
typedef long long ll;
ll Bob(vector<pair<int,int>> v){
ll x=0,m=1;
for (auto i:v){
ll n=i.second,r=i.first-1;
while (x%n!=r)
x+=m;
m*=n/__gcd(m,n);
if (m>)
}
return x;
}