上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页
摘要: 题目链接 :http://acm.nyist.edu.cn/JudgeOnline/problem.php?pid=737这个动态规划的思是,要得出合并n堆石子的最优答案可以从小到大枚举所有石子合并的最优情况,例如要合并5堆石子就可以从,最优的2+3和1+4中得到最佳... 阅读全文
posted @ 2017-11-23 15:46 GoldenFingers 阅读(124) 评论(0) 推荐(0)
摘要: 题目链接:http://codeforces.com/contest/879/problem/CC. Short Programtime limit per test2 seconds memory limit per test256 megabytesPetya l... 阅读全文
posted @ 2017-11-15 16:10 GoldenFingers 阅读(130) 评论(0) 推荐(0)
摘要: E. Danil and a Part-time Job题目链接:http://codeforces.com/contest/877/problem/Etime limit per test2 seconds memory limit per test256 mega... 阅读全文
posted @ 2017-11-11 19:38 GoldenFingers 阅读(185) 评论(0) 推荐(0)
摘要: 题目链接:http://codeforces.com/contest/877/problem/DD. Olya and Energy Drinkstime limit per test2 seconds memory limit per test256 megabyt... 阅读全文
posted @ 2017-11-07 16:56 GoldenFingers 阅读(175) 评论(0) 推荐(0)
摘要: 题目链接:http://codeforces.com/contest/877/problem/BNikita and stringtime limit per test2 seconds memory limit per test256 megabytesNikita... 阅读全文
posted @ 2017-11-06 19:58 GoldenFingers 阅读(185) 评论(0) 推荐(0)
摘要: D - StackWrite a program which reads an expression in the Reverse Polish notation and prints the computational result. An expression ... 阅读全文
posted @ 2017-10-28 16:21 GoldenFingers 阅读(217) 评论(0) 推荐(0)
摘要: 插入排序:能快速处理相对有序的数据,最优情况下复杂度仅仅为O(n)(即原本就是有序的数列);#includeusing namespace std;const int maxn = 100;int num[maxn];void InsertionSort(int n)... 阅读全文
posted @ 2017-10-28 14:41 GoldenFingers 阅读(175) 评论(0) 推荐(0)
摘要: E. The Untended Antiquity题目链接http://codeforces.com/contest/869/problem/E 解题心得: 1、1,x1,y1,x2,y2 以(x1,y1)为左上角(x2,y2)为右下角的矩形,四边建墙。 ... 阅读全文
posted @ 2017-10-08 17:01 GoldenFingers 阅读(123) 评论(0) 推荐(0)
摘要: C. The Intriguing Obsession题目链接http://codeforces.com/contest/869/problem/C 解题心得: 1、由于题目中限制了两个相同颜色的点之间长度至少为3,这样就只能两两不同颜色的点相互组合,再将三种... 阅读全文
posted @ 2017-10-08 16:42 GoldenFingers 阅读(123) 评论(0) 推荐(0)
摘要: B. The Eternal Immortality题目链接http://codeforces.com/contest/869/problem/B 解题心得:题意就是给出a,b,问(a!)/(b!)的个位数,要注意0,5两个数,只要a,b相差超过5个位数就只能是0,其... 阅读全文
posted @ 2017-10-08 16:22 GoldenFingers 阅读(100) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 33 下一页