
日常刷题
面具下的狰狞
这个作者很懒,什么都没留下…
展开
-
codeforces 1203 C. Common Divisors
C. Common Divisors time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output You are given an array原创 2019-08-15 10:12:26 · 390 阅读 · 0 评论 -
codefrces 1203 E. Boxers(贪心)
E. Boxers time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output There are原创 2019-08-15 15:00:05 · 335 阅读 · 1 评论 -
Codeforces 1201 C.Maximum Median
题目链接 题意:找最大的中位数,可以操作k次,每次可以给某个数+1; 思路:从中位数到最后一次遍历,相等就下一个,比前面的大就对前面的数(从当前到中位数)+1,知道数组最后或者k<=0; 个人思考:本人思路没错,但在实施的时候不知道出了什么问题一直WA 6,有点郁闷,最后还是没忍住去偷看了大佬的代码; 根据大佬的思路写的代码(基本就是抄的): #include <iostream>...原创 2019-08-12 17:32:45 · 241 阅读 · 0 评论