Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67143 胡海峰老师 短信计费 Python3 Accepted 69 MS 3772 KB 317 2024-03-14 18:52:11

Tests(10/10):


Code:

def textcost(words): #int 整体 cost = words//70 *0.1 if words%70 !=0: cost += 0.1 return cost #主程序 n = int(input()) res = 0 for x in range(n): m = int(input()) #m短消息字数量 money = textcost(m) res += money res = '{:.1f}'.format(res) print(res)