제출 #1307907

#제출 시각아이디문제언어결과실행 시간메모리
1307907islam_2010마술쇼 (APIO24_show)C++20
0 / 100
2 ms344 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; if(r > i) r = 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) { long long x = 0, d = 1; for(auto i : V) { long long a = i.first - 1; long long r = i.second - 1; while(x % a != r) { x += d; } d *= a / __gcd(a, d); } return x; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...