結果

問題 No.138 化石のバージョン
コンテスト
ユーザー steek79
提出日時 2015-10-12 15:25:42
言語 PyPy2
(7.3.15)
結果
AC  
実行時間 83 ms / 5,000 ms
コード長 393 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 265 ms
コンパイル使用メモリ 77,716 KB
最終ジャッジ日時 2025-12-03 17:25:26
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

fossil = map(int, raw_input().split("."))
target = map(int, raw_input().split("."))

if fossil[0] > target[0]:
    ans = "YES"
elif fossil[0] < target[0]:
    ans = "NO"
else:
    if fossil[1] > target[1]:
        ans = "YES"
    elif fossil[1] < target[1]:
        ans = "NO"
    else:
        if fossil[2] >= target[2]:
            ans = "YES"
        else:
            ans = "NO"

print ans
0