結果

問題 No.138 化石のバージョン
ユーザー Mario
提出日時 2018-04-30 23:48:25
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 285 bytes
コンパイル時間 102 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-06-28 00:00:41
合計ジャッジ時間 2,250 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

def get_version(a, b, c):
    return int(a * 10 ** 6 + b * 10 ** 3 + c)

fa, fb, fc = map(int, input().split("."))
a, b, c = map(int, input().split("."))

fversion = get_version(fa, fb, fc)
version = get_version(a, b, c)

if version <= fversion:
    print("YES")
else:
    print("NO")
0