Wcipeg 2017-2018 Test
Toronto Transfer Commission
Shia Labeouf, a renowned forensic scientist, is analyzing video footage from the inside of a TTC bus. The dates on which each video were recorded have been lost. However, in each video, the transfer holder can be clearly seen. The front and back of a TTC bus transfer has the day of the year printed on it. For example, January 1 is written as 001
, and February 1 is written as 032
.
Labeouf wants a program to get the date of each video. Given the day of the year and the year, write a program which outputs the date.
Input Format
The only line of input contains a single integer N (1 ≤ N ≤ 365), the day of the year.
Output Format
Output the date corresponding to each day of the year given in the format MM/DD
, one per line. Assume that the year will never be a leap year.
Sample Input 1
001
Sample Output 1
01/01
Sample Input 1
059
Sample Output 1
02/28
All Submissions
Best Solutions
Point Value: 3
Time Limit: 2.00s
Memory Limit: 256M
Added: Dec 05, 2017
Author: kxoraxe
Languages Allowed:
C++03, PAS, C, HASK, ASM, RUBY, PYTH2, JAVA, PHP, SCM, CAML, PERL, C#, C++11, PYTH3
Comments (Search)
It's quiet in here...