2014年9月26日

[坑点汇集]

摘要: WA1. 精度坑解决方法:转成整数过了。UVALive 3664:Guess(贪心 Grade E)2. 特殊情况坑坑0:UVALive 3517:Feel Good(单调栈 Grade C)3. 输出格式坑两组数据之间换行:UVALive 3507:Keep the Customer Satisf... 阅读全文

posted @ 2014-09-26 20:05 ShineCheng 阅读(112) 评论(0) 推荐(0) 编辑

UVALive 3664:Guess(贪心 Grade E)

摘要: vj题目链接题意:有n (n#include #include using namespace std;#define N 20000struct Man{ int a[3]; int possible[8]; void read() { for (int i = 0... 阅读全文

posted @ 2014-09-26 20:03 ShineCheng 阅读(233) 评论(0) 推荐(0) 编辑

uva 1611:Crane(构造 Grade D)

摘要: 题目链接题意:一个序列,你可以选择其中偶数长度的一段,然后中间切开,左右两段交换。现给你一个1~n的某个排列,求一个交换方案,使得排列最终有序。(交换次数 #include #include #include #include using namespace std;#define N 10100i... 阅读全文

posted @ 2014-09-26 11:57 ShineCheng 阅读(277) 评论(0) 推荐(0) 编辑

导航