
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 · 323 阅读 · 0 评论 -
Codeforce 792B Counting-out Rhyme
B. Counting-out Rhymetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputn children are standing in a circle and playing原创 2017-12-06 14:18:17 · 246 阅读 · 0 评论