結果

問題 No.138 化石のバージョン
ユーザー deepjuggling
提出日時 2023-03-08 08:53:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 295 bytes
コンパイル時間 155 ms
コンパイル使用メモリ 82,228 KB
実行使用メモリ 53,960 KB
最終ジャッジ日時 2024-09-18 02:27:44
合計ジャッジ時間 2,649 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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("NO")
elif x < a:
    print("YES")
else:
    if y > b:
        print("NO")
    elif y < b:
        print("YES")
    else:
        if z > c:
            print("NO")
        else:
            print("YES")
0