結果

問題 No.138 化石のバージョン
ユーザー _KingdomOfMoray_KingdomOfMoray
提出日時 2019-12-05 22:40:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 413 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 10,760 KB
実行使用メモリ 7,996 KB
最終ジャッジ日時 2023-08-24 18:18:19
合計ジャッジ時間 3,481 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,788 KB
testcase_01 AC 16 ms
7,820 KB
testcase_02 AC 16 ms
7,852 KB
testcase_03 AC 16 ms
7,820 KB
testcase_04 RE -
testcase_05 AC 16 ms
7,892 KB
testcase_06 AC 16 ms
7,896 KB
testcase_07 AC 16 ms
7,856 KB
testcase_08 AC 17 ms
7,944 KB
testcase_09 AC 16 ms
7,788 KB
testcase_10 AC 16 ms
7,784 KB
testcase_11 AC 16 ms
7,892 KB
testcase_12 WA -
testcase_13 AC 17 ms
7,864 KB
testcase_14 RE -
testcase_15 AC 16 ms
7,852 KB
testcase_16 AC 16 ms
7,848 KB
testcase_17 AC 16 ms
7,816 KB
testcase_18 AC 16 ms
7,832 KB
testcase_19 AC 16 ms
7,856 KB
testcase_20 RE -
testcase_21 AC 17 ms
7,832 KB
testcase_22 RE -
testcase_23 AC 16 ms
7,812 KB
testcase_24 RE -
testcase_25 RE -
testcase_26 AC 16 ms
7,916 KB
testcase_27 AC 16 ms
7,868 KB
testcase_28 AC 16 ms
7,772 KB
testcase_29 WA -
testcase_30 AC 17 ms
7,892 KB
testcase_31 WA -
testcase_32 AC 16 ms
7,864 KB
testcase_33 WA -
testcase_34 AC 16 ms
7,892 KB
testcase_35 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

list_0 = input().split('.')
list_1 = input().split('.')

rel = []

for i in range(3):
    if list_0[i] == list_1[i]:
        rel.append(0)
    elif list_0[i] > list_1[i]:
        rel.append(-1)
    elif list_0[i] < list_1[i]:
        rel.append(1)

judge_list = [i <= 0 for i in rel]

if all(judge_list) or rel.index(-1) == 0:
    res = 1
else:
    res = 0
    
if res == 1:
    print('YES')
else:
    print('NO')
0