![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Atcoder
文章平均质量分 64
MaySsssss
这个作者很懒,什么都没留下…
展开
-
Atcoder 100 B: Ringo's Favorite Numbers
根据题目要求是exactly D times,因为比如input为“0 100”,那么答案就应该是101而不是100,也就是说,求第N个整除10^D而不整除10^(D+1)的数。// AtCoder Beginner Contest 100// B - Ringo's Favorite Numbers#include <bits/stdc++.h>using namespace std...原创 2018-06-23 10:22:25 · 406 阅读 · 2 评论 -
AtCoder 100 C: *3 or /2
[解释]这题可以理解为找到所有的偶数并算出所有偶数除2的次数的总和,因为为了实现最大化。[代码]// AtCoder Beginner Contest 100// C - *3 or /2#include <bits/stdc++.h>using namespace std;#define IEF(i, s, t) for(int i=s; i<t; i++)#define...原创 2018-06-23 11:12:49 · 228 阅读 · 0 评论