結果

問題 No.1120 Strange Teacher
ユーザー maspy
提出日時 2020-07-08 22:55:05
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
RE  
実行時間 -
コード長 332 bytes
コンパイル時間 203 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 23,168 KB
最終ジャッジ日時 2024-10-11 20:53:27
合計ジャッジ時間 2,467 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample RE * 3
other RE * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

# 分母を正にしてから分母を消去する解法

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines

a, b, c, d = map(int, read().split())

if b < 0:
    a, b = -a, -b
if d < 0:
    c, d = -c, -d

LHS = a * d
RHS = b * c

print('Yes' if LHS < RHS else 'No')
0