首页 > 试题广场 >

完美成绩

[编程题]完美成绩
  • 热度指数:15724 时间限制:C/C++ 1秒,其他语言2秒 空间限制:C/C++ 32M,其他语言64M
  • 算法知识视频讲解

KiKi想知道他的考试成绩是否完美,请帮他判断。从键盘输入一个整数表示的成绩,编程判断成绩是否在90~100之间,如果是则输出“Perfect”。


输入描述:
多组输入,每行输入包括一个整数表示的成绩(90~100)。


输出描述:
针对每行输入,输出“Perfect”。
示例1

输入

98

输出

Perfect
while 1:
    try:
        score = int(input())
        if score >=90 and score <=100:
            print("Perfect")
        else:
            continue
    except EOFError:
        break

发表于 2022-01-16 12:02:03 回复(0)
a=input()
if (int(a)<=100) and (int(a)>=90):
    print("Perfect")
发表于 2021-11-30 13:12:07 回复(0)
print("Perfect")

发表于 2021-09-16 14:59:15 回复(0)
while True:
    try:
        if 90<= int(input().strip()) <=100:
            print('Perfect')
    except:
        break

发表于 2021-08-27 17:31:37 回复(0)