文章分类 - cf
codeforces解题报告
摘要:~~这场好难~~我是废物,掉大分了 A. Absolute Maximization 利用|找最大值和&找最小值即可 #include <bits/stdc++.h> using namespace std; // #define int long long #define endl '\n' vo
阅读全文
摘要:A. A+B? 直接读入字符串然后把下标0和2的数字提取出来就行 // Problem: A. A+B? // Contest: Codeforces - Codeforces Round #839 (Div. 3) // URL: https://codeforces.com/contest/17
阅读全文
摘要:看看时间还有十几分钟,开不出来题了,写个题解 A. Cut the Triangle 检查是不是直角边平行于坐标轴的直角三角形即可 这里可以用异或来写,代码较为简洁,我就不改了,直接贴上我的丑代码 code // Problem: A. Cut the Triangle // Contest: Co
阅读全文
摘要:这场的状态不太好 A. Divide and Conquer 如果和为偶数,输出0 如果和为奇数,则输出最小减少奇数的步骤。如样例2,$7/2=3,3/2=1,1/2=0$三次,$4/2=2,2/=1$两次 所以输出2 code #include <bits/stdc++.h> using name
阅读全文
摘要:A. Extremely Round 当n为3位数时,例如$n=120$,满足题目要求的情况有 1 2 3 4 5 6 7 8 9 10 20 30 40 50 60 70 80 90 100 以上19种情况,一位和二位去满各有九种情况,三位只能取一种情况,所以共19种 code #include
阅读全文

浙公网安备 33010602011771号