結果

問題 No.1179 Quadratic Equation
ユーザー H3PO4
提出日時 2020-08-21 21:55:54
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 177 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 45,392 KB
最終ジャッジ日時 2024-10-15 05:36:29
合計ジャッジ時間 8,880 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np

x1, x2 = np.roots(list(map(int, input().split())))
if type(x1) is np.complex128:
    print('imaginary')
elif x1 == x2:
    print(x1)
else:
    print(x1, x2)
0