結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー kohei2019kohei2019
提出日時 2022-03-24 00:14:34
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 218 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,436 KB
実行使用メモリ 54,040 KB
最終ジャッジ日時 2024-04-20 08:26:10
合計ジャッジ時間 1,763 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

Y,M,D = map(int,input().split('/'))
al = (D-1)+31*(M-1)+31*12*Y
al += 2
D = al % 31+1
al //= 31
M = al % 12 + 1
al //= 12
Y = al
M = str(M)
M = (2-len(M))*'0'+M
D = str(D)
D = (2-len(D))*'0'+D
print(str(Y)+'/'+M+'/'+D)
0