Date and time formatting Open on JetBrains Academy
You need to write a program that prints date and time in a special format. Hours, minutes and seconds are split by a colon, and day, month and year are split by a slash. Take a look at the examples below.
Sample Input:
23 59 59 12 12 2018
Sample Output:
23:59:59 12/12/2018
Sample Input:
1 2 3 4 5 2018
Sample Output:
1:2:3 4/5/2018
Memory limit: 256 MB
Time limit: 8 seconds
Show topic summary