結果
問題 | No.1120 Strange Teacher |
ユーザー |
![]() |
提出日時 | 2020-07-08 23:01:43 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
RE
|
実行時間 | - |
コード長 | 393 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 23,680 KB |
最終ジャッジ日時 | 2024-10-11 20:53:36 |
合計ジャッジ時間 | 2,609 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 27 |
ソースコード
# 有理数型による比較解法。 # 等号の場合も Yes と出力しているため、WA になるべきである。 import sys from fractions import Fraction read = sys.stdin.buffer.read readline = sys.stdin.buffer.readline readlines = sys.stdin.buffer.readlines a, b, c, d = map(int, read().split()) LHS = Fraction(a, b) RHS = Fraction(c, d) print('Yes' if LHS <= RHS else 'No')