想请教一下为什么测出来是对的,但是只有30分,谢谢!

P5707 【深基2.例12】上学迟到

``` #include<bits/stdc++.h> using namespace std; signed main() { int s,u,t; scanf ("%d%d",&s,&u); if ( s%u == 0) { t=s/u; t+=9; } else { t=s/u; t+=10; } int h; int m; h = 7; m = 59; while (t != 0) { if (m != 0) { m--; } else { if (h!=0) { h--; m=59; } else { h=23; m=59; } } t--; } int a,b; int c,d; a = h/10; b = h-(10*(h/10)); c = m/10; d = m-(10*(m/10)); printf ("%d%d:%d%d",a,b,c,d); return 0; } ``` @ [ywx1228](https://www.luogu.com.cn/user/297958)
by SZH0523 @ 2022-09-14 21:09:33


```c 由于路途遥远,yyy 可能不得不提前一天出发 ``` 认真读题哦~
by kangshangcheng @ 2022-09-14 21:20:13


@[kangshangcheng](/user/433016) 哦哦谢谢!(下次一定注意!)
by ywx1228 @ 2022-09-21 19:09:44


@[SZH0523](/user/760455) 谢谢好人!!!
by ywx1228 @ 2022-09-21 19:10:29


|