ACM-模拟
GDUFE_SSS
这个作者很懒,什么都没留下…
展开
-
HDU 1896 Stones 优先队列
传送门:http://acm.hdu.edu.cn/showproblem.php?pid=1896 题意:熊孩子无聊扔石头,见到的第奇数个石头就扔,第偶数个石头留在原地,如果有多个石头在同一个地方,先看到大的(可扔距离小的) 思路:学校集训时的STL联系,首先想到用STL的优先队列,按距离从小到大排序,距离相等从大到小排序,每走一步就把队首石头拿出来操作; AC代码原创 2017-08-04 14:59:42 · 311 阅读 · 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 · 223 阅读 · 0 评论 -
POJ 3087 Shuffle'm Up 模拟
Shuffle'm Up Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 12804 Accepted: 5932 Description A common pastime for poker players at a poker table is to s原创 2017-12-06 22:07:32 · 208 阅读 · 0 评论 -
POJ 3278 Catch That Cow-模拟
Catch That Cow Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 101298 Accepted: 31669 Description Farmer John has been informed of the location of a fugi原创 2017-12-06 14:44:43 · 305 阅读 · 0 评论