提交时间:2024-10-28 17:56:06
运行 ID: 54446
#include<bits/stdc++.h> using namespace std; int main() { int num, x, y, p; cin >> num; int sum = 0; for (int i = 1; i <= num; i++) { cin >> x >> y >> p; sum += sqrt(x*x+y*y)*2/50 + p*1.5; } cout << sum+1; return 0; }