4104:单词翻转 4104:单词翻转 总时间限制: 1000ms 内存限制: 65536kB描述 输入一个句子(一行),将句子中的每一个单词翻转后输出。 输入只有一行,为一个字符串,不超过500个字符。单词之间以空格隔开。输出翻转每一个单词后的字符串,单词之间的空格需与原文一致。样例输入 hell Read More
posted @ 2017-08-21 18:19 A-inspire Views(241) Comments(0) Diggs(0) Edit
A:分段函数 编写程序,计算下列分段函数y=f(x)的值。 y=-x+2.5; 0 <= x < 5 y=2-1.5(x-3)(x-3); 5 <= x < 10 y=x/2-1.5; 10 <= x < 20 Read More
posted @ 2017-08-21 17:21 A-inspire Views(500) Comments(0) Diggs(0) Edit
0:A+B Problem 0:A+B Problem 总时间限制: 1000ms 内存限制: 65536kB描述 Calculate a + b 输入Two integer a,,b (0 ≤ a,b ≤ 10)输出Output a + b样例输入 1 2 样例输出 3 #include <ios Read More
posted @ 2017-08-21 17:03 A-inspire Views(180) Comments(0) Diggs(0) Edit
2800:垂直直方图 2800:垂直直方图 总时间限制: 1000ms 内存限制: 65536kB描述 输入4行全部由大写字母组成的文本,输出一个垂直直方图,给出每个字符出现的次数。注意:只用输出字符的出现次数,不用输出空白字符,数字或者标点符号的输出次数。 输入输入包括4行由大写字母组成的文本,每 Read More
posted @ 2017-08-21 16:17 A-inspire Views(478) Comments(0) Diggs(0) Edit