問題一覧 > 通常問題

No.721 Die tertia (ディエ・テルツィア)

レベル : / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 402
作問者 : koba-e964 / テスター : ciel
お気に入りにしたユーザー ProblemId : 1835 / 自分の提出
問題文最終更新日: 2026-06-26 04:23:33
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence. Back to the original
yukicoder contest 197 (順位表) の他の問題:

Problem Statement

Given a date, output the date two days later.

Input

YYYY/MM/DD

The date is given in the format year/month/day.
$2000 \le YYYY \le 2400$
$1 \le MM \le 12$
$1 \le DD \le 31$
For both MM and DD, if the value is 9 or less, the tens digit is padded with a zero.
The given date is guaranteed to be a valid date in the Gregorian calendar.

Output

Output the date two days later in the format year/month/day. If the month or day is 9 or less, pad the tens digit with a zero.
Print a newline at the end.

Sample

Sample 1
Input
2000/01/01
Output
2000/01/03

Pad with zeros.

Sample 2
Input
2000/02/27
Output
2000/02/29

The year 2000 is a leap year.

Sample 3
Input
2016/12/30
Output
2017/01/01

Happy New Year!

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。