結果

問題 No.138 化石のバージョン
ユーザー JunOnuma
提出日時 2017-06-13 13:04:24
言語 Python2
(2.7.18)
結果
AC  
実行時間 15 ms / 5,000 ms
コード長 227 bytes
コンパイル時間 363 ms
コンパイル使用メモリ 6,912 KB
実行使用メモリ 6,272 KB
最終ジャッジ日時 2024-12-29 14:23:35
合計ジャッジ時間 1,965 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

a = map(int, raw_input().split('.'))
b = map(int, raw_input().split('.'))
old = True
for i,j in zip(a,b):
    if i > j:
        break
    if i < j:
        old = False
        break
if old:
    print 'YES'
else:
    print 'NO'
0