| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 71124 | sh25_zhoumy | 救援 | C++ | 通过 | 0 MS | 252 KB | 607 | 2025-10-24 15:00:05 |
#include <iostream> #include <cmath> #include <vector> using namespace std; int main() { int n; cin >> n; double total_time = 0.0; const double speed = 50.0; for (int i = 0; i < n; i++) { double x, y; int people; cin >> x >> y >> people; double distance = sqrt(x * x + y * y); double trip_time = (distance / speed) * 2 + people * 1.5; total_time += trip_time; } int result = static_cast<int>(ceil(total_time)); cout << result << endl; return 0; }