解题思路:
注意事项:
参考代码:
import math # 调用数学模块 t = 0 n = int(input()) #屋顶数 for i in range(n): a = list(map(int,input().split())) #屋顶的坐标值和屋顶上的人 s = (a[0] ** 2 + a[1] ** 2) ** 0.5 #屋顶到大本营距离 t += 2*s / 50 + a[2] + a[2] / 2 #营救需要的时间 print(math.ceil(t)) # 向上取整输出
0.0分
2 人评分