#P8722. [蓝桥杯 2020 省 AB3] 日期识别
[蓝桥杯 2020 省 AB3] 日期识别
Problem Description
Xiao Lan needs to process a lot of data, and some of the data are dates.
Among the dates Xiao Lan processes, there are two common formats: the English format and the numeric format.
The English format uses the first three letters of each month’s English name as the month identifier, followed by two digits for the day. The first letter of the month identifier is uppercase and the other two are lowercase. When the day is less than , a leading must be added. The first three letters for January to December are Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec.
The numeric format directly uses two integers, separated by a space, and neither integer has a leading . The month uses to to represent January to December, respectively.
Given a date in the English format, output its numeric format.
Input Format
Input a date in the English format.
Output Format
Output one line containing two integers, representing the month and the day of the date, respectively.
Feb08
2 8
Oct18
10 18
Hint
Lanqiao Cup 2020, third round of the provincial contest, AB Division, Problem F.
Translated by ChatGPT 5