上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 53 下一页
摘要: 题意: 给一个整数k,每次平方后只能显示结果的前n位,问在这个过程中能得到的最大的数是多少; 思路: floyd判圈算法;它的正确性建立在这得到的这些数是有限的,所以一定是一个循环,在这个循环的圈里面,一个快一个慢,同时出发最后一定会再次相遇,此时结束; 在这个过程中得到最大值; AC代码: 阅读全文
posted @ 2016-07-12 10:08 LittlePointer 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 题意: 给一个序列,找两个整数a[i],a[j]使得a[i]-a[j]最大; 思路: 从前往后扫一遍;水题; AC代码: 阅读全文
posted @ 2016-07-12 09:44 LittlePointer 阅读(270) 评论(0) 推荐(0) 编辑
摘要: 题意: 2e6个数,按从小到大的顺序输出; 思路: 计数排序; AC代码: 阅读全文
posted @ 2016-07-12 09:36 LittlePointer 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 题目链接: D2. The Wall (medium) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limit p 阅读全文
posted @ 2016-07-11 22:28 LittlePointer 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 题目链接: D1. The Wall (easy) time limit per test 0.5 seconds memory limit per test 256 megabytes input standard input output standard output time limit p 阅读全文
posted @ 2016-07-11 22:14 LittlePointer 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 题目链接: C3. Brain Network (hard) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limi 阅读全文
posted @ 2016-07-11 22:11 LittlePointer 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 题目链接: C2. Brain Network (medium) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time li 阅读全文
posted @ 2016-07-11 22:05 LittlePointer 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 题目链接: C1. Brain Network (easy) time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output time limi 阅读全文
posted @ 2016-07-11 22:02 LittlePointer 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 题目链接: E. Pashmak and Graph time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output time limit per 阅读全文
posted @ 2016-07-10 16:14 LittlePointer 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 题目链接: [SCOI2009]粉刷匠 Description windy有 N 条木板需要被粉刷。 每条木板被分为 M 个格子。 每个格子要被刷成红色或蓝色。 windy每次粉刷,只能选择一条木板上一段连续的格子,然后涂上一种颜色。 每个格子最多只能被粉刷一次。 如果windy只能粉刷 T 次,他 阅读全文
posted @ 2016-07-10 11:34 LittlePointer 阅读(193) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 53 下一页