RYIP在线题库
首 页   >   习题练习   >   提交
Problem2040--打靶等级

2040: 打靶等级

[Creator : ]
Time Limit : 1.000 sec  Memory Limit : 128 MB

【 Description 】

小虎参加了一个打靶游戏,靶上有10环,打中3环及以下等级为“D”,4环到6环等级为“C”,7环到8环等级为“B”,9环到10环等级为“A”。现在告诉你小虎打了多少环,你能计算出他的等级吗?

【 Input 】

输入一个正整数n,表示打中了 n 环,其中 0<=n<=10

【 Output 】

输出n对应的等级

【 Sample Input 】

6

【 Sample Output 】

C

【 Source/Category 】