排序
文章平均质量分 81
q435201823
11
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CSU - 1214 三个数字
1、2、3三个数字组成的序列,要求把所有的2放在前面,所有的3放在后面,输出结果。Input 每组数据1、2、3组成的一行字符串,长度不超过10 ^ 5。Output 把原串的2放在前面,3放在后面,输出。Sample Input 12321 223311 Sample Output 22113 221133 Hint[分析] 常见的思路就是遍历记录每个数字的个数,然后按顺序输出。原创 2017-08-11 10:05:28 · 362 阅读 · 0 评论 -
CodeForces - 999D - Equalize the Remainders
You are given an array consisting of nn integers a1,a2,…,ana1,a2,…,an, and a positive integer mm. It is guaranteed that mm is a divisor of nn.In a single move, you can choose any position ii between...原创 2018-08-08 12:04:10 · 305 阅读 · 0 评论
分享