제출 #1307899

#제출 시각아이디문제언어결과실행 시간메모리
1307899islam_2010Magic Show (APIO24_show)C++20
0 / 100
2 ms344 KiB
#include <bits/stdc++.h> #include "Alice.h" using namespace std; vector<pair<int,int>> Alice(){ vector<pair<int, int>> v; int64_t x = setN(77); for(int64_t i = 1; i < 77; i++){ v.push_back({i+1, (x%i)+1}); }return v; }
#include "Bob.h" #include <bits/stdc++.h> using namespace std; long long Bob(vector<pair<int,int>> V) { long long x = 0, d = 1; for(auto i: V){ int a = i.first-1; int r = i.second-1; while(x%a != r){ x += d; }d *= a/__gcd((int64_t)a, (int64_t)d); } return x; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...