随笔分类 - dp
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=4405 Aeroplane chess Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total S
阅读全文
摘要:http://codeforces.com/problemset/problem/148/D The dragon and the princess are arguing about what to do on the New Year's Eve. The dragon suggests fly
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2476 String painter Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Su
阅读全文
摘要:http://codeforces.com/problemset/problem/1249/E E. By Elevator or Stairs? time limit per test 2 seconds memory limit per test 256 megabytes input stan
阅读全文
摘要:https://ac.nowcoder.com/acm/contest/1126/A 链接:https://ac.nowcoder.com/acm/contest/1126/A来源:牛客网 题目描述 After many weeks of hard work, Bessie is finally g
阅读全文
摘要:https://ac.nowcoder.com/acm/contest/1126/B 链接:https://ac.nowcoder.com/acm/contest/1126/B来源:牛客网 上体育课的时候,小蛮的老师经常带着同学们一起做游戏。这次,老师带着同学们一起做传球游戏。 游戏规则是这样的:n
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1069 Monkey and Banana Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1024 Max Sum Plus Plus Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1864 最大报销额 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=3466 Proud Merchants Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others)Total
阅读全文
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=2955 Robberies Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submiss
阅读全文
摘要:Bone Collector II Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7165 Accepted Submission(s): 38
阅读全文
摘要:http://codeforces.com/gym/101492/problem/E 思路: 按过河时间排序后 有两种最优策略: 1.最轻的带最重的过去, 2.两个最轻的带两个最重的过去。 每次判断两人,比较两种策略哪个更优。 样例1:编号为1,2,3,首先1和3先过去,1回来,然后1和2过去,时间
阅读全文
摘要:https://vjudge.net/contest/313050#problem/I 思路:求最大不连续和 #include <iostream> #include <iostream> #include<cstdio> #include<string> #include<cstring> #in
阅读全文
摘要:https://vjudge.net/contest/313050#problem/C lis(最长上升子序列)和lcs(最长公共子序列)的结合lcis(最长公共上升子序列)还不是很懂这个问题https://www.cnblogs.com/WArobot/p/7479431.html https:/
阅读全文

浙公网安备 33010602011771号