結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,752 KB
testcase_01 WA -
testcase_02 AC 27 ms
10,752 KB
testcase_03 AC 26 ms
10,752 KB
testcase_04 AC 27 ms
10,752 KB
testcase_05 AC 25 ms
10,752 KB
testcase_06 AC 26 ms
10,880 KB
testcase_07 AC 26 ms
10,752 KB
testcase_08 AC 26 ms
10,752 KB
testcase_09 AC 30 ms
10,752 KB
testcase_10 AC 26 ms
10,624 KB
testcase_11 AC 25 ms
10,752 KB
testcase_12 AC 25 ms
10,880 KB
testcase_13 AC 27 ms
10,752 KB
testcase_14 AC 27 ms
10,752 KB
testcase_15 AC 27 ms
10,752 KB
testcase_16 AC 25 ms
10,752 KB
testcase_17 WA -
testcase_18 AC 24 ms
10,752 KB
testcase_19 AC 25 ms
10,752 KB
testcase_20 AC 26 ms
10,752 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
elif d>28:
    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