結果
問題 | No.328 きれいな連立方程式 |
ユーザー |
![]() |
提出日時 | 2025-03-20 21:05:26 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 267 bytes |
コンパイル時間 | 236 ms |
コンパイル使用メモリ | 82,384 KB |
実行使用メモリ | 53,532 KB |
最終ジャッジ日時 | 2025-03-20 21:05:28 |
合計ジャッジ時間 | 2,305 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
c1, c2, c3, c4 = map(int, input().split())# Compute the numerator for the discriminant's formulaterm1 = (c4 * c1 - c3 * c2) ** 2term2 = 4 * (c3 ** 2 - c4 * c2) * (c1 * c3 - c2 ** 2)numerator = term1 + term2if numerator >= 0:print("R")else:print("I")