結果
問題 |
No.1179 Quadratic Equation
|
ユーザー |
|
提出日時 | 2020-08-21 22:25:53 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 266 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 54,016 KB |
最終ジャッジ日時 | 2024-10-15 05:54:10 |
合計ジャッジ時間 | 1,398 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 9 WA * 2 |
ソースコード
import sys input = sys.stdin.readline from collections import * a, b, c = map(int, input().split()) if b*b-4*a*c<0: print('imaginary') else: if b*b-4*a*c==0: print(-b/2/a) else: d = (b*b-4*a*c)**0.5 print((-b-d)/2/a, (-b+d)/2/a)