結果

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

ソースコード

diff #

a0=[int(i) for i in input().split(".")]
a1=[int(i) for i in input().split(".")]
if a0[0]>a1[0]:
    print ("YES")
elif a0[0]<a1[0]:
    print ("NO")
elif a0[1]>a1[1]:
    print ("YES")
elif a0[1]<a1[1]:
    print ("NO")
elif a0[2]>a1[2]:
    print ("YES")
elif a0[2]<a1[2]:
    print ("NO")
else:
    print ("YES")
0