模拟
文章平均质量分 79
「已注销」
不疯魔,不成活
展开
-
spoj Ada and Queue 模拟+deque
题目链接:http://www.spoj.com/problems/ADAQUEUE/题意:就是让你模拟一个双端队列的front(),back(),push_back(),push_front(),reverse这些功能。分析:这题,如果像我当时一样就很单纯直接往上面贴函数reverse就肯定会T,正确的做法是用一个标记来保存看他是否已经reverse了,所谓reverse就是头变尾,尾变原创 2017-04-05 20:42:35 · 348 阅读 · 0 评论 -
codeforce D. Innokenty and a Football League 贪心,模拟
题目:Innokenty is a president of a new football league in Byteland. The first task he should do is to assign short names to all clubs to be shown on TV next to the score. Of course, the short na原创 2017-04-26 23:52:04 · 308 阅读 · 0 评论 -
Educational Codeforces Round 21 B.Average Sleep Time 前缀和,双指针
记住,当你觉得很苦很累的时候,你真的在进步原创 2017-05-17 21:03:29 · 320 阅读 · 0 评论