結果

問題 No.138 化石のバージョン
ユーザー ondy_candy
提出日時 2016-07-30 16:07:53
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 34 ms / 5,000 ms
コード長 335 bytes
コンパイル時間 114 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 10,880 KB
最終ジャッジ日時 2024-12-29 14:02:43
合計ジャッジ時間 2,371 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

# -*- coding: utf-8 -*-
old = [int(i) for i in input().split(".")]
judging = [int(i) for i in input().split(".")]

result = "YES"

for i in range(len(old)):
    
    if judging[i] < old[i]:
        result = "YES"
        break
    elif old[i] < judging[i]:
        result = "NO"
        break
    else:
        pass
    
print(result)
0