1026 程序运行时间

#include 
#include 
#define CLK_TCK 100
//freopen("C:\\Users\\pc\\Desktop\\use.txt","r",stdin);

int main()
{
    //freopen("C:\\Users\\pc\\Desktop\\use.txt","r",stdin);

    long long c1,c2;
    scanf("%lld %lld",&c1,&c2);
    
    long long c=c2-c1;
    if(c%100>=50) c=c/100+1;
    else c=c/100;
    
    printf("%02d:",c/3600);
    printf("%02d:",c%3600/60);
    printf("%02d",c%3600%60);
    return 0;
}

你可能感兴趣的:(1026 程序运行时间)