摘要: A. Happy Birthday, Polycarp! 对1~9枚举n以内的数即可 #include <bits/stdc++.h> using namespace std; int t, n; typedef long long ll; int main() { ios::sync_with_s 阅读全文
posted @ 2019-12-15 17:28 CoffeeCati 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 地址:http://codeforces.com/contest/1272 A. Three Friends 仔细读题能够发现|a-b| + |a-c| + |b-c| = |R-L|*2 (其中L = min{a, b, c}, R = max{a, b, c}) 那么本题的移动条件就只考虑两个端 阅读全文
posted @ 2019-12-15 17:11 CoffeeCati 阅读(152) 评论(0) 推荐(0) 编辑