```c
#include <stdio.h>
#include <math.h>
int main() {
int s, v, t;
scanf("%d%d", &s, &v);
t = ceil(1.0 * s / v) + 10;
int h = t / 60, m = t % 60;
int M = 60 - m, H = 7 - h;
while (H < 0) {
H += 24;
}
printf("%02d:%02d", H, M);
return 0;
}
```
还有,
[__用户应当正确地在帖子内容中使用 Markdown 和 LaTeX.__](https://help.luogu.com.cn/rules/community/discuss#%E5%8F%91%E5%B8%96%E8%A7%84%E5%AE%9A)
by lichenxi108 @ 2024-09-24 11:26:29
@[lichenxi108](/user/1006023) 感谢感谢
by ZhangChao24TS103 @ 2024-09-24 11:34:28
@[lichenxi108](/user/1006023) 这输入470 1,输出的是23:60,这不合理啊。竟然是正确答案。
by Ningoxo @ 2024-09-27 17:03:54
~~《脚搓数据》~~
by lichenxi108 @ 2024-09-28 18:39:13
@[Ningoxo](/user/1484166)
``` c
#include <stdio.h>
#include <math.h>
int main() {
int s, v, t;
scanf("%d%d", &s, &v);
t = ceil(1.0 * s / v) + 10;
int h = t / 60, m = t % 60;
int M = 60 - m, H = 7 - h;
while (H < 0) {
H += 24;
}
printf("%02d:%02d", H + M / 60, M % 60);
return 0;
}
```
by lichenxi108 @ 2024-09-28 18:40:56