- 博客(2)
- 收藏
- 关注
原创 PAT 1108 Finding Average(20 分) (有限状态自动机)
题目内容 The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated is that some of the input numbers might not be legal. A legal input is a real number in [−1000,1000] and is accurate up to no mo
2021-02-25 23:18:56 164
原创 PTA基础编程题目集7-26 单词长度
题目内容 你的程序要读入一行文本,其中以空格分隔为若干个单词,以.结束。你要输出每个单词的长度。这里的单词与语言无关,可以包括各种符号,比如it’s算一个单词,长度为4。注意,行中可能出现连续的空格;最后的.不计算在内。 输入格式: 输入在一行中给出一行文本,以.结束 提示:用scanf("%c",…);来读入一个字符,直到读到.为止。 输出格式: 在一行中输出这行文本对应的单词的长度,每个长度之...
2019-11-09 18:57:15 821
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人