#include<stdio.h>
int main()
{
long long s;
scanf("%lld",&s);
int ss=s/1000;
int hh=ss/3600;
int mm=(ss%3600)/60;
ss%=60;
if(hh>=24){
hh%=24;
}
if(hh==0){
printf("00:");
}
else if(hh<10){
printf("0%d:",hh);
}
else{
printf("%d:",hh);
}
if(mm==0){
printf("00:");
}
else if(mm<10){
printf("0%d:",mm);
}
else{
printf("%d:",mm);
}
if(ss==0){
printf("00\n");
}
else if(ss<10){
printf("0%d\n",ss);
}
else {
printf("%d\n",ss);
}
return 0;
}
0.0分
2 人评分
C语言训练-大、小写问题 (C语言代码)浏览:2351 |
蓝桥杯历届试题-九宫重排 (C++代码)浏览:2783 |
简单的a+b (C语言代码)浏览:521 |
【简单计算】 (C语言代码)浏览:622 |
IP判断 (C语言代码)浏览:762 |
C语言程序设计教程(第三版)课后习题9.2 (C语言代码)浏览:556 |
C语言程序设计教程(第三版)课后习题1.5 (C语言代码)浏览:404 |
简单的a+b (C语言代码)浏览:525 |
The 3n + 1 problem (C语言代码)浏览:502 |
GC的苦恼 (C语言代码)浏览:618 |