提交时间:2023-11-18 13:07:27

运行 ID: 31308

#include<iostream> #include<cmath> using namespace std; int main() { int n; cin>>n; int x[n],y[n],p[n]; double d; double total=0; for(int i=0;i<=n-1;i++) { cin>>x[i]>>y[i]>>p[i]; d=hypot(x[i],y[i]); total+=d*2.0/50+p[i]*1.5; } double t=ceil(total); cout<<t<<endl; return 0; }