![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Atcoder
EY07
Hello hello how are you
展开
-
Atcoder169比赛A至D题题解
AAA题 这次的AAA题就是普普通通的AAA×BBB问题,没什么特别的。 #include <bits/stdc++.h> using namespace std; int main(){ int a, b; cin >> a >> b; cout << a*b << endl; return 0; } BBB题 BBB题很坑,切记,一定不能用乘法啊…… 把乘法转一下,转成除法,就能完美ACACAC! #include <bits原创 2020-06-01 17:19:51 · 359 阅读 · 1 评论 -
AT4818【[ABC162D] RGB Triplets】题解
这道题还是值得说一说的。 一开始,本蒟蒻想暴力枚举,然后一看数据…… (¦3」∠) 于是,我想到了优化。我们将每个RRR,GGG,BBB出现的位置分别记录下来,这样,每次选到的三个数就必定满足任两者间不重复,只用判断位置是否合法就行了。 #include <bits/stdc++.h> using namespace std; int main() { int n; cin >...原创 2020-04-24 15:48:42 · 310 阅读 · 0 评论 -
ABC163A至D题题解
A题 A题问说知道半径,要求周长,那么直接把CCC=2πr2πr2πr这个公式套上去,OK~ 当然,求圆周率有一个函数:acos(-1),就不用慢慢背“3.14159265358979323846264338327953.14159265358979323846264338327953.1415926535897932384626433832795”了。 CODE: #include <...原创 2020-04-19 21:32:32 · 218 阅读 · 0 评论