摘要: 1 #include 2 #include 3 int main() 4 { 5 long long a,b,c,sum; 6 int n,i; 7 while(scanf("%d",&n)!=EOF) 8 { 9 for(i=1;i0&&b>0... 阅读全文
posted @ 2015-01-31 23:32 小爷 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 时间限制:1 秒内存限制:128 兆特殊判题:否提交:1431解决:641题目描述:FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his f... 阅读全文
posted @ 2015-01-31 07:38 小爷 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 时间限制:1 秒内存限制:128 兆特殊判题:否提交:1405解决:752题目描述:“今年暑假不AC?”“是的。”“那你干什么呢?”“看世界杯呀,笨蛋!”“@#$%^&*%...”确实如此,世界杯来了,球迷的节日也来了,估计很多ACMer也会抛开电脑,奔向电视作为球迷,一定想看尽量多的完整的比赛,当... 阅读全文
posted @ 2015-01-31 07:37 小爷 阅读(346) 评论(0) 推荐(0) 编辑
摘要: 时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueThis time, you are supposed to find A+B where A and B are two polynomials.InputEach input fi... 阅读全文
posted @ 2015-01-31 07:34 小爷 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 时间限制400 ms内存限制32000 kB代码长度限制16000 B判题程序Standard作者CHEN, YueA family hierarchy is usually presented by a pedigree tree. Your job is to count those famil... 阅读全文
posted @ 2015-01-31 07:33 小爷 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 一、这里只介绍简单的三个客户端异步通信(完全图拓扑结构) open顺序: cl1 读 , cl2 cl3 向 cl1写 cl2 读 , cl1 cl3 向 cl2写 cl3 读 , cl1 cl2 向 cl3写 顺序的规律就是 第i个 客户端读 其他各个客户端 ,其他的各个客户端 向 i 写 ,i 阅读全文
posted @ 2015-01-30 08:09 小爷 阅读(843) 评论(2) 推荐(0) 编辑
摘要: It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c... 阅读全文
posted @ 2015-01-30 07:48 小爷 阅读(345) 评论(0) 推荐(0) 编辑
摘要: To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat... 阅读全文
posted @ 2015-01-30 07:45 小爷 阅读(790) 评论(0) 推荐(0) 编辑
摘要: With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing ba... 阅读全文
posted @ 2015-01-30 07:43 小爷 阅读(169) 评论(0) 推荐(0) 编辑
摘要: Areversibleprimeinanynumbersystemisaprimewhose"reverse"inthatnumbersystemisalsoaprime.Forexampleinthedecimalsystem73isareversibleprimebecauseitsrevers... 阅读全文
posted @ 2015-01-30 07:40 小爷 阅读(256) 评论(0) 推荐(0) 编辑