結果

問題 No.328 きれいな連立方程式
ユーザー nebukuro09nebukuro09
提出日時 2018-06-01 11:23:55
言語 Python2
(2.7.18)
結果
AC  
実行時間 23 ms / 2,000 ms
コード長 225 bytes
コンパイル時間 1,288 ms
コンパイル使用メモリ 6,596 KB
実行使用メモリ 7,860 KB
最終ジャッジ日時 2023-09-12 21:15:52
合計ジャッジ時間 4,057 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
7,816 KB
testcase_01 AC 22 ms
7,644 KB
testcase_02 AC 22 ms
7,860 KB
testcase_03 AC 22 ms
7,684 KB
testcase_04 AC 22 ms
7,624 KB
testcase_05 AC 22 ms
7,644 KB
testcase_06 AC 22 ms
7,604 KB
testcase_07 AC 22 ms
7,804 KB
testcase_08 AC 22 ms
7,604 KB
testcase_09 AC 21 ms
7,620 KB
testcase_10 AC 22 ms
7,596 KB
testcase_11 AC 22 ms
7,612 KB
testcase_12 AC 22 ms
7,816 KB
testcase_13 AC 22 ms
7,652 KB
testcase_14 AC 22 ms
7,608 KB
testcase_15 AC 22 ms
7,800 KB
testcase_16 AC 22 ms
7,776 KB
testcase_17 AC 21 ms
7,604 KB
testcase_18 AC 22 ms
7,800 KB
testcase_19 AC 22 ms
7,644 KB
testcase_20 AC 22 ms
7,780 KB
testcase_21 AC 22 ms
7,624 KB
testcase_22 AC 22 ms
7,644 KB
testcase_23 AC 22 ms
7,812 KB
testcase_24 AC 23 ms
7,624 KB
testcase_25 AC 22 ms
7,720 KB
testcase_26 AC 22 ms
7,616 KB
testcase_27 AC 23 ms
7,600 KB
testcase_28 AC 22 ms
7,648 KB
testcase_29 AC 22 ms
7,644 KB
testcase_30 AC 22 ms
7,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from fractions import Fraction

C = map(int, raw_input().split())
X = C[0] * C[2] - C[1] * C[1]
Y = C[0] * C[3] - C[1] * C[2]
Z = C[1] * C[3] - C[2] * C[2]

print "R" if Fraction(Y, X) ** 2 - 4 * Fraction(Z, X) >= 0 else "I"
0