#abc331a. A - Tomorrow
A - Tomorrow
Score : points
问题描述
在 AtCoder 王国的日历中,一年包含 个月,从第 1 个月到第 个月,并且每个月包含 天,从第 1 天到第 天。
在这个日历中,紧接在年份 、月份 、日期 之后的日期是哪一天?
以上为通义千问 qwen-max 翻译,仅供参考。
Problem Statement
In the calendar of AtCoder Kingdom, a year consists of months from month to month , and each month consists of days from day to day .
What day follows year , month , day in this calendar?
Constraints
- All input values are integers.
Input
The input is given from Standard Input in the following format:
Output
If the day following year , month , day in the calendar of AtCoder Kingdom is year , month , day , print , , and in this order, separated by spaces.
Sample Input 1
12 30
2023 12 30
Sample Output 1
2024 1 1
In the calendar of the kingdom, a year consists of months, and each month consists of days. Thus, the day following year , month , day is year , month , day .
Sample Input 2
36 72
6789 23 45
Sample Output 2
6789 23 46
In the calendar of the kingdom, one year consists of months, and each month consists of days. Thus, the day following year , month , day is year , month , day .
Sample Input 3
12 30
2012 6 20
Sample Output 3
2012 6 21
update @ 2024/3/10 01:15:07