摘要: 比赛链接:https://atcoder.jp/contests/abc047 A - Fighting over Candies 题目大意: 三个数,问其中两个数之和能否等于剩下那个数。 示例程序: #include <bits/stdc++.h> using namespace std; int 阅读全文
posted @ 2021-03-03 14:54 quanjun 阅读(140) 评论(0) 推荐(0)
摘要: 比赛链接:https://atcoder.jp/contests/abc046 A - AtCoDeer and Paint Cans 题目大意: 问 \(3\) 个数中有多少个不同的数。 解题思路: 很多种解法,我是把数放到 set 里面去的。 示例程序: #include <bits/stdc+ 阅读全文
posted @ 2021-03-03 13:38 quanjun 阅读(283) 评论(0) 推荐(0)
摘要: 比赛链接:https://atcoder.jp/contests/abc045 A - Trapezoids 题目大意: 告诉你题型的上底、下底、高,求面积。 解题思路: \(S = \frac{(a+b) \cdot h}{2}\) 示例程序: #include <bits/stdc++.h> u 阅读全文
posted @ 2021-03-03 11:51 quanjun 阅读(189) 评论(0) 推荐(0)