結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー FVRChanFVRChan
提出日時 2019-01-10 23:28:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 357 bytes
コンパイル時間 626 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-05-03 16:10:07
合計ジャッジ時間 1,597 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

y,m,d=list(map(int,input().split("/")))
d+=2
if m in [1,3,5,7,8,10,12] and d>31:
    d,m=d-31,m+1
elif m in [4,6,9,11] and d>30:
    d,m=d-30,m+1
elif y%4==0 and y%100==0 and y%400==0 and d>29:
    d,m=d-29,m+1
else:
    d,m=d-28,m+1
if m>12:
    m,y=m-12,y+1
def f(n):
    if n<10:
        return "0"+str(n)
    return str(n)
print(f(y)+"/"+f(m)+"/"+f(d))
0