제출 #1307909

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