結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー otsuneko
提出日時 2021-05-07 18:17:30
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 362 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 82,432 KB
実行使用メモリ 52,096 KB
最終ジャッジ日時 2024-09-15 06:35:32
合計ジャッジ時間 2,196 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

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))
0