1 条题解
-
0
Guest
-
0
C++ :
#include <bits/stdc++.h> using namespace std; int main(void) { int n; cin >> n; double ans = 0; double x,y; int person; while(n--) { cin >> x >> y >> person; double z = sqrt(x*x + y*y); ans += z / 50.0 * 2 + person + person * 0.5; } cout << (int)(ans+1); //cout << ceil(ans); //ans *= 10; return 0; }
- 1
信息
- ID
- 5672
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者