摘要: 如果可以每个物品拿多件,则从小到大遍历,否则从大到小遍历。 G - Piggy-Bank Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 1114 G -  阅读全文
posted @ 2016-03-30 19:06 超级学渣渣 阅读(238) 评论(0) 推荐(0) 编辑
摘要: Lifting the Stone Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64u Submit Status Practice HDU 1115 Lifting the Stone Submit Status 阅读全文
posted @ 2016-03-30 11:55 超级学渣渣 阅读(276) 评论(0) 推荐(0) 编辑
摘要: Find them, Catch them Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 1703 Find them, Catch them Submi 阅读全文
posted @ 2016-03-30 00:50 超级学渣渣 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Is It A Tree? Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 1308 Is It A Tree? Submit Status Practic 阅读全文
posted @ 2016-03-29 20:37 超级学渣渣 阅读(333) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<stdio.h> #include<algorithm> #include<math.h> using namespace std; int par[103]; struct Island { int x,y; } isl[103]; stru 阅读全文
posted @ 2016-03-29 19:09 超级学渣渣 阅读(228) 评论(0) 推荐(0) 编辑
摘要: C - 食物链 Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 1182 C - 食物链 Submit Status Practice POJ 1182 D 阅读全文
posted @ 2016-03-28 23:22 超级学渣渣 阅读(257) 评论(1) 推荐(0) 编辑
摘要: The Suspects Time Limit: 1000MS Memory Limit: 20000K Total Submissions: 30522 Accepted: 14836 Description Severe acute respiratory syndrome (SARS), an 阅读全文
posted @ 2016-03-28 19:57 超级学渣渣 阅读(162) 评论(0) 推荐(0) 编辑
摘要: //#include<bits/stdc++.h> #include<iostream> #include<stdio.h> #define max1 50005 using namespace std; int pa[max1],vis[max1]; int find(int a) { while 阅读全文
posted @ 2016-03-28 19:42 超级学渣渣 阅读(224) 评论(0) 推荐(0) 编辑
摘要: Description 严重急性呼吸系统综合症( SARS), 一种原因不明的非典型性肺炎,从2003年3月中旬开始被认为是全球威胁。为了减少传播给别人的机会, 最好的策略是隔离可能的患者。 在Not-Spreading-Your-Sickness大学( NSYSU), 有许多学生团体。同一组的学生 阅读全文
posted @ 2016-03-27 15:31 超级学渣渣 阅读(252) 评论(0) 推荐(0) 编辑
摘要: http://acm.zzkun.com/archives/717 这个大神的解答非常,额 猥琐。但是实在是太强了。感觉所有的大数都可以用 long double 了。 阅读全文
posted @ 2016-03-26 13:43 超级学渣渣 阅读(193) 评论(0) 推荐(0) 编辑