90pts什么意思啊?

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

Weizhuo_Zhao @ 2023-12-05 19:02:17

#include<stdio.h>
int main(){
    int s,v,t1,t2,h1,h2,min1,min2;
    scanf("%d%d",&s,&v);
    h2=8;
    min2=0;
    if(s/v==0) t2=s/v;
    else t2=s/v+1;
    t2+=10;
    t1=t2/60;
    t2=t2%60;
    while(h2<t1) h2+=24;
    h2=h2-t1;
    if(min2<t2) {
        h2--;
        min2+=60;
    }
    min2=min2-t2;
    h1=h2/10;
    h2=h2%10;
    min1=min2/10;
    min2=min2%10;
    printf("%d%d:%d%d\n",h1,h2,min1,min2);
    return 0;
}

|