2017年7月31日

HDU6043 KazaQ's Socks

摘要: Problem Description KazaQ wears socks everyday.At the beginning, he has n pairs of socks numbered from 1 to n in his closets. Every morning, he puts o 阅读全文

posted @ 2017-07-31 11:55 gnosed 阅读(249) 评论(0) 推荐(0)

HDU1124 Factorial

摘要: Problem Description The most important part of a GSM network is so called Base Transceiver Station (BTS). These transceivers form the areas called cel 阅读全文

posted @ 2017-07-31 11:54 gnosed 阅读(177) 评论(0) 推荐(0)

HDU1058 Humble Numbers(DP)

摘要: Problem Description A number whose only prime factors are 2,3,5 or 7 is called a humble number. The sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 12, 14, 15 阅读全文

posted @ 2017-07-31 11:48 gnosed 阅读(162) 评论(0) 推荐(0)

HDU1049 Climbing Worm

摘要: Problem Description An inch worm is at the bottom of a well n inches deep. It has enough energy to climb u inches every minute, but then has to rest a 阅读全文

posted @ 2017-07-31 11:45 gnosed 阅读(161) 评论(0) 推荐(0)

HUD1048 The Hardest Problem Ever

摘要: Problem Description Julius Caesar lived in a time of danger and intrigue. The hardest situation Caesar ever faced was keeping himself alive. In order 阅读全文

posted @ 2017-07-31 11:43 gnosed 阅读(267) 评论(0) 推荐(0)

HDU1047 Integer Inquiry

摘要: Problem Description One of the first users of BIT's new supercomputer was Chip Diller. He extended his exploration of powers of 3 to go from 0 to 333 阅读全文

posted @ 2017-07-31 11:39 gnosed 阅读(192) 评论(0) 推荐(0)

HDU1042 N!(大整数类应用)

摘要: Problem Description Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N! Input One N in one line, process to the end of file. Output For ea 阅读全文

posted @ 2017-07-31 11:36 gnosed 阅读(358) 评论(0) 推荐(0)

HDU1039 Easier Done Than Said?

摘要: Problem Description Password security is a tricky thing. Users prefer simple passwords that are easy to remember (like buddy), but such passwords are 阅读全文

posted @ 2017-07-31 11:32 gnosed 阅读(207) 评论(0) 推荐(0)

HDU1036 Average is not Fast Enough!

摘要: Problem Description A relay is a race for two or more teams of runners. Each member of a team runs one section of the race. Your task is to help to ev 阅读全文

posted @ 2017-07-31 11:28 gnosed 阅读(235) 评论(0) 推荐(0)

HDU1035 Robot Motion

摘要: Problem Description A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are l 阅读全文

posted @ 2017-07-31 11:26 gnosed 阅读(156) 评论(0) 推荐(0)

HDU1034 Candy Sharing Game

摘要: Problem 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 ca 阅读全文

posted @ 2017-07-31 11:24 gnosed 阅读(138) 评论(0) 推荐(0)

HDU1031 Design T-Shirt

摘要: Problem Description Soon after he decided to design a T-shirt for our Algorithm Board on Free-City BBS, XKA found that he was trapped by all kinds of 阅读全文

posted @ 2017-07-31 11:22 gnosed 阅读(145) 评论(0) 推荐(0)

HDU1027 Ignatius and the Princess II

摘要: Problem Description Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. 阅读全文

posted @ 2017-07-31 11:18 gnosed 阅读(166) 评论(0) 推荐(0)

HDU1015 Safecracker

摘要: Problem Description "The item is locked in a Klein safe behind a painting in the second-floor library. Klein safes are extremely rare; most of them, a 阅读全文

posted @ 2017-07-31 11:15 gnosed 阅读(137) 评论(0) 推荐(0)

习题2-6

摘要: 排列(permutation) 用1,2,3,…,9组成3个三位数 abc, def, 和ghi,每个数字恰好使用一次,要求 abc:def:ghi = 1:2:3。输出所有解。提示:不必太动脑筋。 思路:设i从123到329,j=2*i,k=3*i。分解i,j,k的各个位数,用一个长度为9、下标从 阅读全文

posted @ 2017-07-31 10:39 gnosed 阅读(128) 评论(0) 推荐(0)

导航