C-study/02-1/6/6.c

10 lines
121 B
C
Raw Normal View History

2021-09-29 07:15:39 +00:00
#include<stdio.h>
int main()
{
int h,m,s;
scanf("%d:%d:%d",&h,&m,&s);
printf("%d",h*3600+m*60+s);
return 0;
}