結果

問題 No.328 きれいな連立方程式
コンテスト
ユーザー lam6er
提出日時 2025-03-20 21:05:26
言語 PyPy3
(7.3.17)
コンパイル:
pypy3 -mpy_compile _filename_
実行:
pypy3 _filename_
結果
AC  
実行時間 55 ms / 2,000 ms
コード長 267 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 245 ms
コンパイル使用メモリ 96,108 KB
実行使用メモリ 79,184 KB
最終ジャッジ日時 2026-07-07 12:46:06
合計ジャッジ時間 3,585 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge2_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

c1, c2, c3, c4 = map(int, input().split())

# Compute the numerator for the discriminant's formula
term1 = (c4 * c1 - c3 * c2) ** 2
term2 = 4 * (c3 ** 2 - c4 * c2) * (c1 * c3 - c2 ** 2)
numerator = term1 + term2

if numerator >= 0:
    print("R")
else:
    print("I")
0