﻿ N-B-U-T Online Judge :: [1326] Cheer Up
• ### [1326] Cheer Up

• 时间限制: 1000 ms　内存限制: 65535 K
• 问题描述
• Although some people can't get equiped, although they scuffled a lot for a better equipment, TT finally solved this hard problem. TT wanted to know if her ability beyond her troop. "Now stand up soldiers! Time to calculate our fighting capacity!" said TT. TT's fighting capacity was N, and the average of troop was K. It was too terrible if TT more power than her troop.
• 输入
• First there is two integers N(1 <= N <= 100) and M(1 <= M <= 200), N means TT's fighting capacity, M means there are M soldiers, next line contains M numbers(1 <= ith <= 100), means each soldier's fighting capacity.
• 输出
• For each case, output TT's fighting capacity and the average of the troop,if TT's fight more than her troop's average, output "terrible" in the end. For the second number, keep one decimal point.
• 样例输入
• ```60 3
20
30
40
30 4
50
60
70
80
```
• 样例输出
• ```60 30.0 terrible
30 65.0```
• 提示
• `无`
• 来源
• `Mr.Cai`
• 操作
﻿