1026

来源:互联网 发布:嗯淘宝网店教学视频 编辑:程序博客网 时间:2024/06/04 01:14
#include<stdio.h>#include<time.h>#define C 100int main(){    int h,m,s;    double c1,c2,c;    scanf("%lf%lf",&c1,&c2);    c=(c2-c1)/C;    h=c/3600;    c=c-h*3600;    m=c/60;    c=c-m*60;    s=c;    if((c-s)>=0.5)        s++;     printf("%02d:%02d:%02d\n",h,m,s);    return 0;}
原创粉丝点击