PROGRAMMING:calendar
Please write a program, input year and month, output calendar.
####Input format
>First line integer $$n$$
>This is followed by $$n $$rows of data, each containing two integers $$y $$and $$M$$
>Where: $$y $$is the year ($$1000 / Leq Y / Leq 9999 $$), and $$M $$is the month ($$1 / Leq M / Leq 12 $$)
####Output format
>Calendar of these months (refer to output sample)
####Input sample 1
```in
one
2017 6
```
####Output sample 1
```out
(see figure below)
```
>![ Title. JPG] (~ / a5a1fa25-bb8a-4bb7-880a-5b700ddd0de5. JPG)
####Input sample 2
```in
two
2020 5
2020 12
```
####Output sample 2
```out
(see figure below)
```
>![ Calendar 1. JPG] (~ / a6d86fe9-925c-4da7-98d0-21581b25dc3a. JPG)
>![ Calendar 2. JPG] (~ / 6a645d1e-b726-4519-9117-42fd508b90f0. JPG)
Requirements: there must be no extra space at the end of each line, and there must be no extra empty line at the end of the calendar.
---
Tip: January 1, A.D. is Monday.
answer:If there is no answer, please comment
####Input format
>First line integer $$n$$
>This is followed by $$n $$rows of data, each containing two integers $$y $$and $$M$$
>Where: $$y $$is the year ($$1000 / Leq Y / Leq 9999 $$), and $$M $$is the month ($$1 / Leq M / Leq 12 $$)
####Output format
>Calendar of these months (refer to output sample)
####Input sample 1
```in
one
2017 6
```
####Output sample 1
```out
(see figure below)
```
>![ Title. JPG] (~ / a5a1fa25-bb8a-4bb7-880a-5b700ddd0de5. JPG)
####Input sample 2
```in
two
2020 5
2020 12
```
####Output sample 2
```out
(see figure below)
```
>![ Calendar 1. JPG] (~ / a6d86fe9-925c-4da7-98d0-21581b25dc3a. JPG)
>![ Calendar 2. JPG] (~ / 6a645d1e-b726-4519-9117-42fd508b90f0. JPG)
Requirements: there must be no extra space at the end of each line, and there must be no extra empty line at the end of the calendar.
---
Tip: January 1, A.D. is Monday.
answer:If there is no answer, please comment