結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー TAMUKINTVTAMUKINTV
提出日時 2018-08-06 13:10:33
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 11,844 KB
実行使用メモリ 10,872 KB
最終ジャッジ日時 2023-10-19 22:09:15
合計ジャッジ時間 1,681 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
10,872 KB
testcase_01 AC 36 ms
10,872 KB
testcase_02 AC 35 ms
10,872 KB
testcase_03 AC 35 ms
10,872 KB
testcase_04 AC 35 ms
10,872 KB
testcase_05 AC 34 ms
10,872 KB
testcase_06 AC 34 ms
10,872 KB
testcase_07 AC 34 ms
10,872 KB
testcase_08 AC 35 ms
10,872 KB
testcase_09 AC 35 ms
10,872 KB
testcase_10 AC 35 ms
10,872 KB
testcase_11 AC 35 ms
10,872 KB
testcase_12 AC 34 ms
10,872 KB
testcase_13 AC 34 ms
10,872 KB
testcase_14 AC 34 ms
10,872 KB
testcase_15 AC 34 ms
10,872 KB
testcase_16 AC 35 ms
10,872 KB
testcase_17 AC 35 ms
10,872 KB
testcase_18 AC 35 ms
10,872 KB
testcase_19 AC 35 ms
10,872 KB
testcase_20 AC 35 ms
10,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import calendar
days=[0,31,28,31,30,31,30,31,31,30,31,30,31]
y,m,d=map(int,input().split("/"))
if calendar.isleap(y):
    days[2]=29
d+=2
if d>days[m]:
    d-=days[m]
    m+=1
if m>12:
    m=1
    y+=1
print(f"{y:04}/{m:02}/{d:02}")
0