乙级--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; }
#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; }