結果
問題 |
No.8083 12歳
|
ユーザー |
|
提出日時 | 2021-04-01 22:29:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 445 bytes |
コンパイル時間 | 198 ms |
コンパイル使用メモリ | 82,844 KB |
実行使用メモリ | 54,480 KB |
最終ジャッジ日時 | 2024-12-21 06:44:30 |
合計ジャッジ時間 | 21,524 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 288 WA * 78 |
ソースコード
def uruu(y): if y%4==0: if y%100==0 and y%400!=0: return False return True else: return False Y, N, D = map(int, input().split()) if uruu(Y-12): if D>30+31+30+31+31+30+31+30+31+31+28: print(max(0, N-D), min(N, 365-D)) else: print(max(0, N-D), min(N, 366-D)) else: if uruu(Y+1): print(max(0, N-D), min(N, 366-D)) else: print(max(0, N-D), min(N, 365-D))