摘要:
DescriptionFarmer John has scattered treats for Bessie at special places in the pasture. Since everyone knows that smart cows make tasty milk, FJ has placed the treats at locations that require Bessie to think. He has given her two numbers, P and Q (1 <= P <= 6,000; 1 <= Q <= 6,000), and 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Description校歌手大奖赛中每个评委会给每个参赛选手打分,请用类描述每个选手的被评委的评分。选手得分规则为去掉一个最高分和一个最低分,然后计算平均得分,请编程输出某选手的得分。Input输入数据有多组,第一行为数据组数T每组数据第一行两个正整数 n m (3 <= n,m <= 100),表示有 n 个 评 委 , m个选手。接下来 n 行,每行 m 个正整数。每行表示一个评委给 m 个选手的分数,分数为[0,100]的整数。Output请将结果输出对于每组输入数据输出 m 行,每行表示一个选手的得分,结果保留 2 位小数。水题,二维数组存储,一维数组记录最高最低分,最后统 阅读全文
摘要:
DescriptionZSUQ Messenger is similar with Tencent QQ. Each user will make a nickname for itself. Different users can have identical nickname. Some common ones, such as “Tom”, “Marry”, “Kate”, are frequently used. In a recent survey, the ZSUQ Company was astonished to find that there are no more than 阅读全文
摘要:
DescriptionTrung is bored with his mathematics homeworks. He takes a piece of chalk and starts writing a sequence of consecutive integers starting with 1 to N (1 < N < 10000) . After that, he counts the number of times each digit (0 to 9) appears in the sequence. For example, with N = 13 , the 阅读全文
摘要:
Description You: What's the score? Did I miss much? Me: It's 2-1 for elAhli and the second half just started. The first half was quite boring. You: Who scored first? elAhli or ezZamalek? Me: What difference does it make? You: Big difference! I can predict the outcome of the match if I knew t 阅读全文
摘要:
DescriptionAn abundant number is a positive integer n for which Sigma(n) – 2n > 0, Where Sigma(n) is defined as the sum of all the divisors of n. And the quantity Sigma(n) – 2n is called abundance.Given the range of n, you should find out the maximum abundance value that can be reached. For examp 阅读全文
摘要:
DescriptionIn sixth grade, students are presented with different ways to calculate the Least Common Multiple (LCM) and the Greatest Common Factor (GCF) of two integers. The LCM of two integers a and b is the smallest positive integer that is a multiple of both a and b . The GCF of two non-zero integ 阅读全文
摘要:
DescriptionWell, how do you feel about mobile phone? Your answer would probably be something like that “It’s so convenient and benefits people a lot”.... 阅读全文