摘要: Codeforces Round #701 (Div. 2) C. Floor and Mod https://codeforces.ml/contest/1485/problem/C signed main() { int t; scanf("%d", &t); //第一种思路是按列相加,范围是b 阅读全文
posted @ 2021-03-05 21:32 wansheking 阅读(23) 评论(0) 推荐(0)
摘要: https://codeforces.com/contest/510/problem/D 很明显的裴蜀定理 int a[maxn], c[maxn]; inline int gcd(int a, int b) { return b == 0 ? a : gcd(b, a % b); } int ma 阅读全文
posted @ 2021-03-05 16:15 wansheking 阅读(29) 评论(0) 推荐(0)
摘要: https://codeforces.ml/contest/1478/problem/D inline ll gcd(ll a, ll b) { return b == 0 ? a : gcd(b, a % b); } //每次操作为在序列中任取两个数x, y(可以相同),将2x-y放入序列中,原x 阅读全文
posted @ 2021-03-05 10:26 wansheking 阅读(319) 评论(0) 推荐(0)