結果

問題 No.138 化石のバージョン
ユーザー utsumidaisukeutsumidaisuke
提出日時 2017-12-31 13:17:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 305 bytes
コンパイル時間 138 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 8,008 KB
最終ジャッジ日時 2023-08-23 12:25:33
合計ジャッジ時間 2,174 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 16 ms
7,996 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 16 ms
7,940 KB
testcase_07 AC 17 ms
7,824 KB
testcase_08 AC 16 ms
7,836 KB
testcase_09 AC 16 ms
7,800 KB
testcase_10 AC 16 ms
7,936 KB
testcase_11 AC 16 ms
7,812 KB
testcase_12 AC 16 ms
7,852 KB
testcase_13 AC 16 ms
7,944 KB
testcase_14 AC 15 ms
7,940 KB
testcase_15 AC 16 ms
7,872 KB
testcase_16 AC 16 ms
7,764 KB
testcase_17 AC 16 ms
7,860 KB
testcase_18 AC 16 ms
7,940 KB
testcase_19 WA -
testcase_20 AC 16 ms
7,816 KB
testcase_21 AC 16 ms
7,764 KB
testcase_22 AC 16 ms
7,884 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 AC 16 ms
7,936 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 AC 16 ms
7,768 KB
testcase_34 AC 16 ms
7,828 KB
testcase_35 AC 16 ms
7,912 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input().split(".")
p = input().split(".")

S = [int(i) for i in s]
P = [int(j) for j in p]

if S == P:
    print("YES")

else:
    for i in range(3):
        if S[i] > P[i]:
            print("YES")
            break
        elif S[i] < P[i]:
            print("NO")
        else:
            continue
0