ACM_刷题
hohohohoooo
嘻嘻嘻
展开
-
HDU 4296 buildings
Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1270 Accepted Submission(s): 550 Problem Description Have you ever heard the story原创 2013-07-27 23:08:34 · 464 阅读 · 0 评论 -
HDU 1257 最少拦截系统
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 12535 Accepted Submission(s): 4970 Problem Description 某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是原创 2013-07-26 13:56:28 · 335 阅读 · 0 评论 -
HDU 1050 moving table
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 14901 Accepted Submission(s): 5098 Problem Description The famous ACM (Advanced Compu原创 2013-07-27 23:19:02 · 425 阅读 · 0 评论 -
HDU 2187 悼念512汶川大地震遇难同胞——老人是真饿了
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5492 Accepted Submission(s): 2318 对于幸存的灾民来说,最急待解决的显然是温饱问题,救灾部队一边在组织人员全力打通交通,一边在组织采购粮食。现在原创 2013-07-27 23:03:58 · 757 阅读 · 0 评论 -
HDU 2037 今年暑假不ac
#include#include#includeusing namespace std;struct node{int s,f;}A[110];int cmp(node a,node b){return a.f>n && n){memset(A,0,sizeof(A));int count = 1;for(i = 0;i >A[i].s>>A[i].f;}sort(A,A+n,cmp);j = A原创 2013-07-27 22:55:27 · 398 阅读 · 0 评论 -
HDU 1872 稳定排序
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3244 Accepted Submission(s): 1247 Problem Description 大家都知道,快速排序是不稳定的排序方法。 如果对于数组中出现原创 2013-08-12 23:22:22 · 498 阅读 · 0 评论 -
hdu 1215
这道题是因子求和,传统的方法会超时 #include using namespace std; const int MAX = 500000+5; int A[MAX]; int main() { int t; int n; cin>>t; for(int i = 1; i< MAX; i++) A[i] = 1; for( i = 2 ;原创 2013-07-28 19:34:51 · 477 阅读 · 0 评论 -
HDU 1181 变形课
#include #include #include const int MAXN = 10000; bool map[26][26]; char a[MAXN]; bool used[26]={false}; int FIND = 0; using namespace std; void dfs(int x) { if(map[x][12]) { FIND = 1; } for(i原创 2013-08-14 13:39:23 · 450 阅读 · 0 评论 -
hdu 1789 doing homework again
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 14901 Accepted Submission(s): 5098 Problem Description The famous ACM (Advanced Compu原创 2013-07-27 23:24:25 · 384 阅读 · 0 评论 -
HDU 1009 Fatmouse’s trade
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 33540 Accepted Submission(s): 10911 Problem Description FatMouse prepared M pounds of原创 2013-07-27 23:12:01 · 414 阅读 · 0 评论 -
HDU 2111 saving hdu
Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 4162 Accepted Submission(s): 1893 Problem Description 话说上回讲到海东集团面临内外交困,公司的元老也只剩下XHD夫妇原创 2013-07-27 22:59:14 · 481 阅读 · 0 评论