提交时间:2024-02-02 20:02:09
运行 ID: 39534
#include <iostream> #include <cmath> using namespace std; int main(){ int n, m; double x, y, s, sum = 0; cin >> n; for (int i = 1; i <= n; i++) { cin >> x >> y >> m; s = sqrt(x * x + y * y); sum += s / 25 + m * 1.5; } cout << ceil(sum); return 0; }