結果

問題 No.138 化石のバージョン
ユーザー c-yan
提出日時 2020-07-16 01:02:52
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 32 ms / 5,000 ms
コード長 208 bytes
コンパイル時間 175 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-22 19:34:54
合計ジャッジ時間 2,459 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

A0, B0, C0 = map(int, input().split('.'))
A1, B1, C1 = map(int, input().split('.'))

v0 = '%03d%03d%03d' % (A0, B0, C0)
v1 = '%03d%03d%03d' % (A1, B1, C1)

if v1 <= v0:
    print('YES')
else:
    print('NO')
0