-->
当前位置:首页 > 题库

PROGRAMMING:Date formatting

Luz5年前 (2021-05-10)题库400
Different countries in the world have different habits of writing dates. For example, Americans are used to writing "month day year", while Chinese are used to writing "Year Month Day". Now please write a program to automatically rewrite the date in American format into the date used in China.
###Input format:
Input the month, day and year in the format of "MM DD yyyy" in one line. The title guarantees that the date given is the legal date since new year's Day 1900.
###Output format:
In one line, give the year, month and day in the format of "yyyy MM DD".
###Input example:
```in
03-15-2017
```
###Output example:
```out
2017-03-15
```






answer:If there is no answer, please comment