摘要: 答题就是贪心算法,[题目链接](http://codeforces.com/problemset/problem/1027/C) 笔者主要想借这个题谈一下如何缩短代码运行时间 1.scanf与cin,优先选择scanf 2.memset最好不要用 3.本题中,不需要开一个1e6的数组储存输入数据 4 阅读全文
posted @ 2018-08-20 15:19 ronnie14165 阅读(166) 评论(0) 推荐(0) 编辑
摘要: cf B题,莫名其妙过,g++显示输入输出%lld有错误提示,,,目前查资料无解,,, 原题(http://codeforces.com/gym/227252/standings/friends/true) 阅读全文
posted @ 2018-08-20 00:20 ronnie14165 阅读(196) 评论(0) 推荐(0) 编辑