結果

問題 No.138 化石のバージョン
ユーザー raven7959
提出日時 2022-08-19 11:44:17
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 43 ms / 5,000 ms
コード長 281 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 82,240 KB
実行使用メモリ 51,968 KB
最終ジャッジ日時 2024-10-07 15:32:28
合計ジャッジ時間 2,762 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c=map(int,input().split("."))
x,y,z=map(int,input().split("."))
if x<a:
    print("YES")
elif x>a:
    print("NO")
else:
    if y<b:
        print("YES")
    elif y>b:
        print("NO")
    else:
        if z<=b:
            print("YES")
        else:
            print("NO")
0