| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 83679 | bnu_fanmeijie | 救援 | C++ | 通过 | 0 MS | 256 KB | 498 | 2026-01-30 16:34:26 |
#include<bits/stdc++.h> using namespace std; int main() { int n; //屋顶数 double x, y, p, time = 0,t1=0,t2=0; //(x,y)坐标,p:人数 cin >> n; for(int i = 1; i<=n; ++i) { cin >> x >> y >> p; //到原点的距离: sqrt(x*x + y*y) //s=vt , //往返距离:2d, 所有人上下船用时:p * 1.5 t1=sqrt(x*x + y*y) / 50 * 2; t2=p * 1.5; time +=(t1+t2); } cout << ceil(time); //向上取整 return 0; }