#include<bits/stdc++.h>
using namespace std;
int main() {
int energy = 10000;
int time = 0;
while (energy >= 600) { // 完整循环:跑+休息
energy -= 600; // 跑步消耗
time += 60;
if (energy == 0) break;
energy += 300; // 休息恢复
time += 60;
}
if (energy > 0) { // 处理剩余体力
time += energy / 10; // 每秒消耗10体力
}
cout << time << endl;
return 0;
}
0 回复
0 转发
0 喜欢
2 阅读



