贪心
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 · 741 阅读 · 0 评论 -
codeforces 214B - Hometask
B. Hometasktime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputFurik loves math lessons very much, so he doesn't原创 2013-12-30 23:58:29 · 1073 阅读 · 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
TaskTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2108 Accepted Submission(s): 536Problem DescriptionToday the company has原创 2014-07-23 18:05:36 · 1540 阅读 · 0 评论 -
zoj 3829 Known Notation
Known NotationTime Limit: 2 Seconds Memory Limit: 65536 KBDo 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 · 1202 阅读 · 0 评论