通过代码:
#include <bits/stdc++.h> using namespace std; int n; double x, y, a, t; int main() { scanf("%d", &n); for(int i = 1; i <= n; i ++) { scanf("%lf%lf%lf", &x, &y, &a); t += 2 * sqrt(x * x + y * y) / 50 + 1.5 * a; } printf("%.0lf", ceil(t)); return 0; }
1073:救援
最新推荐文章于 2024-08-07 14:05:18 发布