結果
| 問題 |
No.1179 Quadratic Equation
|
| コンテスト | |
| ユーザー |
norioc
|
| 提出日時 | 2025-06-30 02:05:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 384 ms / 2,000 ms |
| コード長 | 209 bytes |
| コンパイル時間 | 419 ms |
| コンパイル使用メモリ | 12,032 KB |
| 実行使用メモリ | 33,048 KB |
| 最終ジャッジ日時 | 2025-06-30 02:05:50 |
| 合計ジャッジ時間 | 8,361 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
import numpy as np
A, B, C = map(int, input().split())
res = np.roots([A, B, C])
if isinstance(res[0], complex):
print('imaginary')
elif res[0] == res[1]:
print(res[0])
else:
print(*sorted(res))
norioc