摘要: http://www.ifrog.cc/acm/problem/1028 题解处:http://www.ifrog.cc/acm/solution/4 #include <cstdio> #include <cstring> #include <queue> #include <cmath> #in 阅读全文
posted @ 2016-09-06 18:38 shuguangzw 阅读(303) 评论(0) 推荐(0) 编辑
摘要: 1807: 最长上升子序列~ Description Bobo 在 ICPCCamp 学会了解决最长上升子序列问题后得到了一个长度为 n 的数列 p1,p2,…,pn. Bobo 想用 1,2,…,n 来替换其中值为 0 的元素,使得 p1,p2,…,pn 互不相同(即 p1,p2,…,pn 是 { 阅读全文
posted @ 2016-09-06 11:30 shuguangzw 阅读(399) 评论(0) 推荐(0) 编辑