結果
問題 | No.779 Heisei |
ユーザー |
![]() |
提出日時 | 2019-01-24 18:57:03 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 538 ms / 1,000 ms |
コード長 | 649 bytes |
コンパイル時間 | 194 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 44,732 KB |
最終ジャッジ日時 | 2024-11-06 02:47:32 |
合計ジャッジ時間 | 14,290 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 23 |
ソースコード
import numpy as np def get_data(): Y, M, D = input().split(' ') return int(Y), int(M), int(D) def heisei(Y,M,D): if Y > 1989 and Y<2019: return True elif Y==1989: if M == 1: if D<8: return False else: return True else: return True elif Y==2019: if M<5: return True else: return False else: return False def main(): Y, M, D = get_data() if heisei(Y,M,D): print("Yes") else: print("No") if __name__=='__main__': main()