摘要: Codeforces Beta Round #1 A. #include<cstdio> #include<iostream> #include<algorithm> #include<cstring> #include<cmath> #include<stack> #include<cstdlib 阅读全文
posted @ 2019-08-22 14:47 千摆渡Qbd 阅读(253) 评论(0) 推荐(0) 编辑
摘要: codeforces 4D 题意:给定n和信封和一个w 和 h,要求以下的信封选取最多的,然后 wi 必须比 w 大并递增,hi 比 h 大也递增,问最多的信封数和哪些,按照顺序输出 题解:按照w递增排序后,求h的最长上升子序列并输出路径 #include<cstdio> #include<iost 阅读全文
posted @ 2019-08-22 14:26 千摆渡Qbd 阅读(258) 评论(0) 推荐(0) 编辑