Files
python/TangDou/LuoGuBook/P5707.cpp
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

14 lines
320 B
C++

#include <bits/stdc++.h>
using namespace std;
int main() {
int s, v;
cin >> s >> v;
int t_walk = ceil(1.0 * s / v) + 10;//注意上取整
int from_zero = 60 * (24 + 8) - t_walk;
int hh = from_zero / 60 % 24;
int mm = from_zero % 60;
printf("%02d:%02d", hh, mm);
return 0;
}