結果
| 問題 | No.779 Heisei |
| コンテスト | |
| ユーザー |
Haruki0804S
|
| 提出日時 | 2019-01-25 10:42:17 |
| 言語 | Python3 (3.14.2 + numpy 2.4.0 + scipy 1.16.3) |
| 結果 |
TLE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 649 bytes |
| 記録 | |
| コンパイル時間 | 688 ms |
| コンパイル使用メモリ | 21,664 KB |
| 実行使用メモリ | 69,612 KB |
| 最終ジャッジ日時 | 2026-01-04 06:36:45 |
| 合計ジャッジ時間 | 23,964 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 22 TLE * 1 |
ソースコード
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()
Haruki0804S