0
已解决
张恩泽
高级天翼
高级天翼
//CODE
//#pragma GCC optimize(3)
//#include <bits/stdc++.h>
#include <iostream>
#include <cmath>
#include <cstdio>
using namespace std;
int n;
double x, y;
int s;
double ans;
int main() {
// freopen ("题目名.in", "r", stdin);
// freopen ("题目名.out", "w", stdout);
cin >> n;
for (int i = 1; i <= n; i ++) {
cin >> x >> y >> s;
double jl = sqrt(x * x + y * y);
ans += (jl / 5) * 2 + s * 15;
}
cout << (int)(ans + 0.5);
// fclose (stdin);
// fclose (stdout);
return 0;//好习惯!
}
代码在这复制