
ACM-STL
GDUFE_SSS
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU 1896 Stones 优先队列
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1896 题意:熊孩子无聊扔石头,见到的第奇数个石头就扔,第偶数个石头留在原地,如果有多个石头在同一个地方,先看到大的(可扔距离小的) 思路:学校集训时的STL联系,首先想到用STL的优先队列,按距离从小到大排序,距离相等从大到小排序,每走一步就把队首石头拿出来操作; AC代码原创 2017-08-04 14:59:42 · 337 阅读 · 0 评论 -
Codeforce 792B Counting-out Rhyme
B. Counting-out Rhyme time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output n children are standing in a circle and playing原创 2017-12-06 14:18:17 · 257 阅读 · 0 评论