結果

問題 No.138 化石のバージョン
ユーザー yuki2006yuki2006
提出日時 2015-01-28 21:45:47
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 74 ms / 5,000 ms
コード長 372 bytes
コンパイル時間 1,488 ms
コンパイル使用メモリ 77,456 KB
実行使用メモリ 76,580 KB
最終ジャッジ日時 2023-08-28 13:08:11
合計ジャッジ時間 5,453 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
76,320 KB
testcase_01 AC 72 ms
76,332 KB
testcase_02 AC 71 ms
76,092 KB
testcase_03 AC 70 ms
76,300 KB
testcase_04 AC 73 ms
76,244 KB
testcase_05 AC 72 ms
76,032 KB
testcase_06 AC 72 ms
76,032 KB
testcase_07 AC 70 ms
76,340 KB
testcase_08 AC 72 ms
76,416 KB
testcase_09 AC 71 ms
76,200 KB
testcase_10 AC 71 ms
76,556 KB
testcase_11 AC 72 ms
76,432 KB
testcase_12 AC 72 ms
76,452 KB
testcase_13 AC 72 ms
76,204 KB
testcase_14 AC 70 ms
76,468 KB
testcase_15 AC 70 ms
76,352 KB
testcase_16 AC 73 ms
76,468 KB
testcase_17 AC 73 ms
76,208 KB
testcase_18 AC 73 ms
76,356 KB
testcase_19 AC 71 ms
76,352 KB
testcase_20 AC 71 ms
76,032 KB
testcase_21 AC 71 ms
76,040 KB
testcase_22 AC 71 ms
76,244 KB
testcase_23 AC 70 ms
76,580 KB
testcase_24 AC 71 ms
76,436 KB
testcase_25 AC 71 ms
76,100 KB
testcase_26 AC 72 ms
76,400 KB
testcase_27 AC 71 ms
76,328 KB
testcase_28 AC 72 ms
76,168 KB
testcase_29 AC 72 ms
76,160 KB
testcase_30 AC 71 ms
76,184 KB
testcase_31 AC 71 ms
76,428 KB
testcase_32 AC 74 ms
76,476 KB
testcase_33 AC 73 ms
76,468 KB
testcase_34 AC 72 ms
76,400 KB
testcase_35 AC 71 ms
76,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-

A = map(int, raw_input().split("."))
X = map(int, raw_input().split("."))

assert all(0 <= x <= 100 for x in A)
assert all(0 <= x <= 100 for x in X)

for i in xrange(3):
    if A[i] == X[i]:
        pass
    else:
        if A[i] < X[i]:
            print "NO"
        elif A[i] > X[i]:
            print "YES"
        break
else:
    print "YES"
0