結果

問題 No.721 Die tertia (ディエ・テルツィア)
ユーザー Takayuki HirotaTakayuki Hirota
提出日時 2020-12-25 11:29:39
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 1,853 ms
コンパイル使用メモリ 81,296 KB
実行使用メモリ 53,308 KB
最終ジャッジ日時 2023-10-22 03:03:53
合計ジャッジ時間 2,418 ms
ジャッジサーバーID
(参考情報)
judge10 / judge11
このコードへのチャレンジ(β)

テストケース

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

ソースコード

diff #

y,m,d=map(int,input().split('/'))
days={1:31,2:28,3:31,4:30,5:31,6:30,7:31,8:31,9:30,10:31,11:30,12:31}
if y%4==0 and y%100>0:
	days[2]=29
if d+2>days[m]:
	if m==12:
		y+=1
		m=1
		d-=29
	else:
		d+=2-days[m] 
		m+=1
else:
	d+=2
print('{:04}/{:02}/{:02}'.format(y,m,d))
0