![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
贪心
Kefault
这个作者很懒,什么都没留下…
展开
-
nefu 617 好多考试
代码: #include #include #include #include using namespace std; struct node { int day; int w; } a[1010]; bool cmp(node a,node b) { if(a.w!=b.w) return a.w>b.w;原创 2013-10-20 13:02:56 · 745 阅读 · 0 评论 -
codeforces 214B - Hometask
B. Hometask time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Furik loves math lessons very much, so he doesn't原创 2013-12-30 23:58:29 · 1076 阅读 · 0 评论 -
nefu 650 max num
题目:经典dp题目,求出最大相邻子序列的和。 方法:给出两种方法,一种dp,一种直接暴力(数据量小的时候可以考虑)。 代码1: #include #include using namespace std; int main() { int n; int t=1; cin>>n; int s[100010]; while(t<=n) {原创 2014-05-02 14:24:08 · 904 阅读 · 0 评论 -
hdu 4864 Task
Task Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 2108 Accepted Submission(s): 536 Problem Description Today the company has原创 2014-07-23 18:05:36 · 1541 阅读 · 0 评论 -
zoj 3829 Known Notation
Known Notation Time Limit: 2 Seconds Memory Limit: 65536 KB Do you know reverse Polish notation (RPN)? It is a known notation in the area of mathematics and computer science. It is also k原创 2014-10-13 21:12:15 · 1207 阅读 · 0 评论