乙级--1026 程序运行时间

#include<stdio.h>
int main(){
    int C1,C2,hh,mm,ss,time;
    scanf("%d %d",&C1,&C2);
    time = (C2 - C1 + 50)/100;  //加50
    hh = time/3600;
    time = time%3600;
    ss = time%60;
    mm = time/60;
    printf("%02d:%02d:%02d",hh,mm,ss);
    return 0;
}

  

posted @ 2019-12-12 08:41  Hqx_curiosity  阅读(161)  评论(0编辑  收藏  举报