結果
| 問題 | No.721 Die tertia (ディエ・テルツィア) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-05-07 18:17:30 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
AC
|
| 実行時間 | 27 ms / 2,000 ms |
| コード長 | 362 bytes |
| 記録 | |
| コンパイル時間 | 158 ms |
| コンパイル使用メモリ | 85,376 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2026-04-04 17:58:19 |
| 合計ジャッジ時間 | 1,421 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
days_in_month = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
Y,M,D = map(int,input().split("/"))
D += 2
if Y%4 == 0 and not (Y%100 == 0 and Y%400 != 0):
days_in_month[1] = 29
if days_in_month[M-1] < D:
D -= days_in_month[M-1]
M += 1
if M > 12:
Y += 1
M = 1
print(str(Y).zfill(2)+"/"+str(M).zfill(2)+"/"+str(D).zfill(2))