#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main() {
int h,m,s,z;
scanf("%d",&z);
m=z/60;
h=z/3600;
s=z-h*3600-m*60;
printf("%d,%d,%d",h,m,s);
return 0;
}
#include <iostream>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main() {
int h,m,s,z;
scanf("%d",&z);
m=z/60;
h=z/3600;
s=z-h*3600-m*60;
printf("%d,%d,%d",h,m,s);
return 0;
}
打赏作者