結果

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

ソースコード

diff #

A = input().split(".")
B = input().split(".")
if int(A[0]) > int(B[0]):
    print("YES")
elif int(A[0]) == int(B[0]):
    if int(A[1]) > int(B[1]):
        print("YES")
    elif int(A[1]) == int(B[1]):
        if int(A[2]) >= int(B[2]):
            print("YES")
        else:
            print("NO")
    else:
        print("NO")
else:
    print("NO")
0