摘要: Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N!InputOne N in one line, process to the end of file.OutputFor each N, output N! in one line.Sample InputSample Ou... 阅读全文
posted @ 2010-09-20 21:18 にんじゃ 阅读(536) 评论(0) 推荐(0)
摘要: As Easy As A+BTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 12502Accepted Submission(s): 5006Problem DescriptionThese days, I am thinking about a ... 阅读全文
posted @ 2010-09-20 16:38 にんじゃ 阅读(706) 评论(0) 推荐(0)
摘要: Problem DescriptionPassword security is a tricky thing. Users prefer simple passwords that are easy to remember (like buddy), but such passwords are often insecure. Some sites use random computer-gene... 阅读全文
posted @ 2010-09-16 21:58 にんじゃ 阅读(352) 评论(0) 推荐(0)
摘要: 杭电的oj上用System.out.printf格式化输出会常常PE用System.out.println可以于是小结下java的格式化输出:java.text.DecimalFormat 类是个好东东。。。比如保留小数点后两位DecimalFormat df=(DecimalFormat) DecimalFormat.getInstance();df.applyPattern("0.00");S... 阅读全文
posted @ 2010-09-15 16:42 にんじゃ 阅读(512) 评论(0) 推荐(0)
摘要: Problem DescriptionMost bicycle speedometers work by using a Hall Effect sensor fastened to the front fork of the bicycle. A magnet is attached to one of the spokes on the front wheel so that it will ... 阅读全文
posted @ 2010-09-15 16:22 にんじゃ 阅读(382) 评论(0) 推荐(0)
摘要: Problem DescriptionBoudreaux and Thibodeaux are on the road again . . ."Boudreaux, we have to get this shipment of mudbugs to Baton Rouge by tonight!""Don't worry, Thibodeaux, I already checked ahead.... 阅读全文
posted @ 2010-09-15 15:32 にんじゃ 阅读(351) 评论(0) 推荐(0)
摘要: Problem DescriptionA 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 evaluate the results of a relay race.You have to proc... 阅读全文
posted @ 2010-09-15 15:00 にんじゃ 阅读(300) 评论(0) 推荐(0)
摘要: 本人用的是myeclipse 6.5 通过菜单 Window->Preference 打开参数设置面板,然后选择: 1.Java -> Code Style -> Code Templates 2.在右侧选择Comments,将其中的Files项,然后选右边的"Edit",进入编辑模式: 3.进入编辑模式后就可以自定义注释了。另外可以插入一些变量,如年、日期等等。 4.最后,确保... 阅读全文
posted @ 2010-05-28 19:46 にんじゃ 阅读(4115) 评论(0) 推荐(0)
摘要: Robot MotionTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1287Accepted Submission(s): 592Problem DescriptionA robot has been programmed to follow ... 阅读全文
posted @ 2010-05-21 19:02 にんじゃ 阅读(417) 评论(0) 推荐(0)
摘要: Candy Sharing GameTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 800Accepted Submission(s): 485Problem DescriptionA number of students sit in a cir... 阅读全文
posted @ 2010-05-14 16:16 にんじゃ 阅读(435) 评论(0) 推荐(0)