10分求助

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

```cpp #include <bits/stdc++.h> using namespace std; int main() { int t = 10,c,d,f = 1920; double a,b; scanf("%lf %lf",&a,&b); t += ceil(a / b); if (t <= 480) { int f1 = 480; c = (f1 - t) / 60; d = (f1 - t) % 60; printf("%02d:%02d",c,d); } else { c = (f - t) / 60; d = (f - t) % 60; printf("%02d:%02d",c,d); } } ```
by u_s_er_na_me @ 2023-08-06 15:56:10


@[u_s_er_na_me](/user/1056363) 谢谢, 反复观摩过了,又get到了更简便的语法,谢谢
by rqf20071011 @ 2023-08-07 10:35:39


|