結果
問題 | No.1179 Quadratic Equation |
ユーザー | H3PO4 |
提出日時 | 2020-08-21 21:55:54 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 177 bytes |
コンパイル時間 | 79 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 45,196 KB |
最終ジャッジ日時 | 2024-04-23 05:50:46 |
合計ジャッジ時間 | 7,386 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 440 ms
45,188 KB |
testcase_01 | AC | 436 ms
44,804 KB |
testcase_02 | AC | 446 ms
44,916 KB |
testcase_03 | AC | 440 ms
45,196 KB |
testcase_04 | AC | 445 ms
45,048 KB |
testcase_05 | WA | - |
testcase_06 | AC | 447 ms
45,188 KB |
testcase_07 | AC | 439 ms
45,180 KB |
testcase_08 | WA | - |
testcase_09 | AC | 449 ms
45,176 KB |
testcase_10 | AC | 448 ms
44,812 KB |
testcase_11 | AC | 445 ms
45,072 KB |
testcase_12 | AC | 441 ms
44,420 KB |
testcase_13 | WA | - |
ソースコード
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)