摘要: for(int i=0;i<k;i++) { dp[i]=a[i].w; for(int j=0;j<i;j++) { if(a[j].n<=a[i].n) dp[i]=max(dp[i],dp[j... 阅读全文
posted @ 2018-04-05 21:07 LandingGuys 阅读(130) 评论(0) 推荐(0)
摘要: 题目:https://nanti.jisuanke.com/t/17309总是忘了s起点有可能>t终点先创建一个数组a[i] 表示的是在第i个车站 车上的人有多少个 for(int j=1;jr) swap(l, r); for(LL i=l;i#inc... 阅读全文
posted @ 2018-04-05 15:39 LandingGuys 阅读(138) 评论(0) 推荐(0)
摘要: 1.A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15, ... 阅读全文
posted @ 2018-04-05 10:52 LandingGuys 阅读(212) 评论(0) 推荐(0)