2012年4月22日

POH 4180 RealPhobia(连分数)

摘要: RealPhobiaTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 69Accepted Submission(s): 27Problem DescriptionBert is a programmer with a real fear of floating point arithmetic. Bert has quite successfully used rational numbers to write his programs but 阅读全文

posted @ 2012-04-22 21:05 kuangbin 阅读(626) 评论(0) 推荐(0) 编辑

POJ 2142 The Balance(扩展欧几里德解方程)

摘要: The BalanceTime Limit: 5000MSMemory Limit: 65536KTotal Submissions: 2490Accepted: 1091DescriptionMs. Iyo Kiffa-Australis has a balance and only two kinds of weights to measure a dose of medicine. For example, to measure 200mg of aspirin using 300mg weights and 700mg weights, she can put one 700mg we 阅读全文

posted @ 2012-04-22 20:49 kuangbin 阅读(692) 评论(0) 推荐(0) 编辑

HDU 4178 Roll-call in Woop Woop High(字符串处理题)

摘要: #include<stdio.h>#include<string.h>#include<iostream>using namespace std;char str[1000];char name[100];char ans1[100],ans2[100],ans3[100],ans4[100],ans5[100];int main(){ // freopen("test.in","r",stdin); // freopen("test.out","w",stdout); int 阅读全文

posted @ 2012-04-22 18:43 kuangbin 阅读(560) 评论(0) 推荐(0) 编辑

HDU 4185 Oil Skimming(二分匹配,匈牙利算法)

摘要: Oil SkimmingTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 87Accepted Submission(s): 50Problem DescriptionThanks to a certain "green" resources company, there is a new profitable industry of oil skimming. There are large slicks of crude 阅读全文

posted @ 2012-04-22 18:41 kuangbin 阅读(1246) 评论(0) 推荐(0) 编辑

导航

JAVASCRIPT: