結果

問題 No.138 化石のバージョン
ユーザー amatakasapamatakasap
提出日時 2017-11-15 10:41:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 275 ms / 5,000 ms
コード長 233 bytes
コンパイル時間 100 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 28,648 KB
最終ジャッジ日時 2023-08-28 13:57:41
合計ジャッジ時間 13,132 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 263 ms
28,452 KB
testcase_01 AC 275 ms
28,548 KB
testcase_02 AC 269 ms
28,460 KB
testcase_03 AC 266 ms
28,464 KB
testcase_04 AC 272 ms
28,384 KB
testcase_05 AC 273 ms
28,464 KB
testcase_06 AC 267 ms
28,460 KB
testcase_07 AC 265 ms
28,500 KB
testcase_08 AC 256 ms
28,540 KB
testcase_09 AC 262 ms
28,456 KB
testcase_10 AC 263 ms
28,468 KB
testcase_11 AC 264 ms
28,420 KB
testcase_12 AC 262 ms
28,464 KB
testcase_13 AC 264 ms
28,592 KB
testcase_14 AC 261 ms
28,472 KB
testcase_15 AC 267 ms
28,388 KB
testcase_16 AC 262 ms
28,388 KB
testcase_17 AC 259 ms
28,472 KB
testcase_18 AC 266 ms
28,472 KB
testcase_19 AC 264 ms
28,528 KB
testcase_20 AC 266 ms
28,472 KB
testcase_21 AC 265 ms
28,524 KB
testcase_22 AC 266 ms
28,644 KB
testcase_23 AC 265 ms
28,648 KB
testcase_24 AC 265 ms
28,420 KB
testcase_25 AC 264 ms
28,388 KB
testcase_26 AC 260 ms
28,476 KB
testcase_27 AC 260 ms
28,456 KB
testcase_28 AC 262 ms
28,592 KB
testcase_29 AC 260 ms
28,588 KB
testcase_30 AC 261 ms
28,468 KB
testcase_31 AC 270 ms
28,472 KB
testcase_32 AC 265 ms
28,464 KB
testcase_33 AC 268 ms
28,456 KB
testcase_34 AC 264 ms
28,472 KB
testcase_35 AC 266 ms
28,472 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from distutils.version import StrictVersion

fossil_version = input()
target_version = input()

if fossil_version == target_version or StrictVersion(fossil_version) > StrictVersion(target_version):
  print('YES')
else:
  print('NO')
0