結果

問題 No.138 化石のバージョン
ユーザー mokraimokrai
提出日時 2017-10-29 16:12:46
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 562 bytes
コンパイル時間 456 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,752 KB
最終ジャッジ日時 2024-12-29 14:36:49
合計ジャッジ時間 2,625 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    major1, minor1, patch1 = map(int, input().split("."))
    major2, minor2, patch2 = map(int, input().split("."))

    if major1 > major2:
        print("YES")
    elif major2 > major1:
        print("NO")
    else:
        if minor1 > minor2:
            print("YES")
        elif minor2 > minor1:
            print("NO")
        else:
            if patch1 > patch2:
                print("YES")
            elif patch2 > patch1:
                print("NO")
            else:
                print("YES")


if __name__ == '__main__':
    main()
0