摘要: DescriptionBessie wants some toys. She's been saving her allowance for years, and has an incredibly huge stash. However, she is quite frugal and wants to get the best value for her cash. In fact, she has decided only to buy exactly three different toys of the N (3 <= N <= 25,000) offered a 阅读全文
posted @ 2013-02-06 01:28 Joyee 阅读(339) 评论(0) 推荐(0) 编辑
摘要: DescriptionWrite a program that reads in the radius and length of a cylinder and computes volume using the following formulas:area = radius * radius * PIvolume = area * lengthPI = 3.14159 InputOne line contains num1, num2 (both in double) represent the radius and length of a cyliner. OutputThe volum 阅读全文
posted @ 2013-02-06 01:05 Joyee 阅读(359) 评论(0) 推荐(0) 编辑