随笔分类 -  2016寒假加强作业

HDU
摘要:Description HDU 2006'10 ACM contest的颁奖晚会隆重开始了! 为了活跃气氛,组织者举行了一个别开生面、奖品丰厚的抽奖活动,这个活动的具体要求是这样的: 首先,所有参加晚会的人员都将一张写有自己名字的字条放入抽奖箱中; 然后,待所有字条加入完毕,每人从箱中取一个字条; 阅读全文
posted @ 2016-02-11 19:58 Not-Bad 阅读(217) 评论(0) 推荐(0)
摘要:Description 国庆期间,省城HZ刚刚举行了一场盛大的集体婚礼,为了使婚礼进行的丰富一些,司仪临时想出了有一个有意思的节目,叫做"考新郎",具体的操作是这样的: 首先,给每位新娘打扮得几乎一模一样,并盖上大大的红盖头随机坐成一排; 然后,让各位新郎寻找自己的新娘.每人只准找一个,并且不允许多 阅读全文
posted @ 2016-02-10 21:23 Not-Bad 阅读(399) 评论(0) 推荐(0)
摘要:Description Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO". Input each test case contains two numbers A and B 阅读全文
posted @ 2016-02-10 20:01 Not-Bad 阅读(242) 评论(0) 推荐(0)
摘要:Description Give you a number on base ten,you should output it on base two.(0 < n < 1000) Input For each case there is a postive number n on base ten, 阅读全文
posted @ 2016-02-10 19:07 Not-Bad 阅读(190) 评论(0) 推荐(0)
摘要:Description I have a very simple problem for you. Given two integers A and B, your job is to calculate the Sum of A + B. Input The first line of the i 阅读全文
posted @ 2016-02-09 00:25 Not-Bad 阅读(264) 评论(0) 推荐(0)
摘要:Description Problems involving the computation of exact values of very large magnitude and precision are common. For example, the computation of the n 阅读全文
posted @ 2016-02-08 23:26 Not-Bad 阅读(499) 评论(0) 推荐(0)
摘要:Description 网上流传一句话:"常在网上飘啊,哪能不挨刀啊~"。其实要想能安安心心地上网其实也不难,学点安全知识就可以。 首先,我们就要设置一个安全的密码。那什么样的密码才叫安全的呢?一般来说一个比较安全的密码至少应该满足下面两个条件: (1).密码长度大于等于8,且不要超过16。 (2) 阅读全文
posted @ 2016-02-08 21:55 Not-Bad 阅读(422) 评论(0) 推荐(0)
摘要:Description 读入两个小于100的正整数A和B,计算A+B. 需要注意的是:A和B的每一位数字由对应的英文单词给出. Input 测试输入包含若干测试用例,每个测试用例占一行,格式为"A + B =",相邻两字符串有一个空格间隔.当A和B同时为0时输入结束,相应的结果不要输出. Outpu 阅读全文
posted @ 2016-02-08 21:54 Not-Bad 阅读(259) 评论(0) 推荐(0)
摘要:Description "Kronecker's Knumbers" is a little company that manufactures plastic digits for use in signs (theater marquees, gas station price displays 阅读全文
posted @ 2016-02-07 13:05 Not-Bad 阅读(290) 评论(0) 推荐(0)
摘要:Description Given any integer 0 <= n <= 10000 not divisible by 2 or 5, some multiple of n is a number which in decimal notation is a sequence of 1's. 阅读全文
posted @ 2016-02-06 17:47 Not-Bad 阅读(292) 评论(0) 推荐(0)
摘要:Description Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order for him 阅读全文
posted @ 2016-02-06 16:46 Not-Bad 阅读(391) 评论(0) 推荐(0)
摘要:Description 人称“AC女之杀手”的超级偶像LELE最近忽然玩起了深沉,这可急坏了众多“Cole”(LELE的粉丝,即"可乐"),经过多方打探,某资深Cole终于知道了原因,原来,LELE最近研究起了著名的RPG难题: 有排成一行的n个方格,用红(Red)、粉(Pink)、绿(Green) 阅读全文
posted @ 2016-02-06 16:23 Not-Bad 阅读(246) 评论(0) 推荐(1)
摘要:Description Once upon a time in a country far away lived a king and he had a big kingdom. He was a very clever king but he had one weakness -- he coul 阅读全文
posted @ 2016-02-06 15:21 Not-Bad 阅读(201) 评论(0) 推荐(0)
摘要:Description To calculate the circumference of a circle seems to be an easy task - provided you know its diameter. But what if you don't? You are given 阅读全文
posted @ 2016-02-06 14:39 Not-Bad 阅读(393) 评论(0) 推荐(0)
摘要:Description Businesses like to have memorable telephone numbers. One way to make a telephone number memorable is to have it spell a memorable word or 阅读全文
posted @ 2016-01-30 18:02 Not-Bad 阅读(279) 评论(0) 推荐(0)
摘要:Description Find and list all four-digit numbers in decimal notation that have the property that the sum of its four digits equals the sum of its digi 阅读全文
posted @ 2016-01-30 14:32 Not-Bad 阅读(471) 评论(0) 推荐(0)
摘要:Description A simple dartboard consists of a flat, circular piece of cork with concentric rings drawn on it. Darts are thrown at the board by players 阅读全文
posted @ 2016-01-30 14:22 Not-Bad 阅读(259) 评论(0) 推荐(0)
摘要:Description A simple mathematical formula for e is where n is allowed to go to infinity. This can actually yield very accurate approximations of e usi 阅读全文
posted @ 2016-01-28 19:19 Not-Bad 阅读(218) 评论(0) 推荐(0)
摘要:Description A number of students sit in a circle facing their teacher in the center. Each student initially has an even number of pieces of candy. Whe 阅读全文
posted @ 2016-01-28 19:04 Not-Bad 阅读(310) 评论(0) 推荐(0)
摘要:Description "OK, you are not too bad, em... But you can never pass the next test." feng5166 says. "I will tell you an odd number N, and then N integer 阅读全文
posted @ 2016-01-28 18:58 Not-Bad 阅读(266) 评论(0) 推荐(0)