大牛帮我看看哪里错了,90分不理解

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

BJXZXY @ 2024-11-03 23:22:50

include <stdio.h>

include <math.h>

int main() { double s,v;int t,h,m; scanf("%lf%lf",&s,&v); t=ceil(s/v); h=(1440-t-10)/60; m=(1440-t-10)%60; if(h<=16&&m>=10) printf("%d:%d",8+h,m); if(h>16&&m<10) printf("0%d:0%d",h-16,m); if(h<=16&&m<10) printf("%d:0%d",8+h,m); if(h>16&&m>=10) printf("0%d:%d",h-16,m); return 0; }


by CYClove @ 2024-11-04 10:15:40

你cs啊


by _Chen963 @ 2024-11-04 10:18:46

cs


|