摘要: 看看时间还有十几分钟,开不出来题了,写个题解 A. Cut the Triangle 检查是不是直角边平行于坐标轴的直角三角形即可 这里可以用异或来写,代码较为简洁,我就不改了,直接贴上我的丑代码 code // Problem: A. Cut the Triangle // Contest: Co 阅读全文
posted @ 2022-12-17 00:37 KicamonIce 阅读(180) 评论(0) 推荐(0)
摘要: 这场的状态不太好 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 阅读全文
posted @ 2022-12-16 16:21 KicamonIce 阅读(52) 评论(0) 推荐(1)
摘要: 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 阅读全文
posted @ 2022-12-13 18:45 KicamonIce 阅读(112) 评论(0) 推荐(0)