문제 풀이/Codeforces
2021. 3. 14.
Codeforces Round #707 (Div. 1, Div. 2)
A - Alexey and Train Problem - A - Codeforces codeforces.com 하라는 대로 구현하면 된다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 #include using namespace std; typedef long long ll; typedef pair pii; typedef pair pll; ll gcd(ll a, ll b) { for (; b; a %= b, swap(a, b)); return a; } int n; int a[101], b[101]; int tim[101]; int main() { ios::sync_..