一直90分 求助!!!
查看原帖
一直90分 求助!!!
1466903
ZhangChao24TS103楼主2024/9/24 11:01

第9个测试点一直出错,求助!!!```c #include <stdio.h> #include <math.h> int main(void) { int s, v, t; t = 0; scanf("%d %d", &s, &v); t = floor(s / v) + 11; int h, m; m = t % 60; h = floor(t/60); int H, M; M = 60 - m; H = 7 - h + floor(M/60); while (H < 0) { H += 24; } printf("%02d:%02d", H, M%60); return 0; }

2024/9/24 11:01
加载中...