結果
問題 | No.955 ax^2+bx+c=0 |
ユーザー | fine |
提出日時 | 2019-12-20 01:00:47 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 467 bytes |
コンパイル時間 | 75 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 44,124 KB |
最終ジャッジ日時 | 2024-07-07 02:19:12 |
合計ジャッジ時間 | 58,190 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 431 ms
43,772 KB |
testcase_02 | AC | 451 ms
43,736 KB |
testcase_03 | AC | 434 ms
43,512 KB |
testcase_04 | AC | 433 ms
43,764 KB |
testcase_05 | AC | 439 ms
43,752 KB |
testcase_06 | AC | 432 ms
43,760 KB |
testcase_07 | AC | 427 ms
43,756 KB |
testcase_08 | AC | 433 ms
43,504 KB |
testcase_09 | AC | 436 ms
43,480 KB |
testcase_10 | AC | 424 ms
43,764 KB |
testcase_11 | AC | 433 ms
43,756 KB |
testcase_12 | AC | 436 ms
43,604 KB |
testcase_13 | AC | 422 ms
43,628 KB |
testcase_14 | RE | - |
testcase_15 | RE | - |
testcase_16 | RE | - |
testcase_17 | RE | - |
testcase_18 | RE | - |
testcase_19 | RE | - |
testcase_20 | RE | - |
testcase_21 | RE | - |
testcase_22 | RE | - |
testcase_23 | RE | - |
testcase_24 | AC | 432 ms
43,628 KB |
testcase_25 | AC | 427 ms
43,636 KB |
testcase_26 | AC | 421 ms
43,992 KB |
testcase_27 | AC | 424 ms
43,752 KB |
testcase_28 | AC | 422 ms
43,500 KB |
testcase_29 | AC | 430 ms
43,628 KB |
testcase_30 | AC | 430 ms
43,352 KB |
testcase_31 | AC | 428 ms
43,764 KB |
testcase_32 | AC | 424 ms
43,624 KB |
testcase_33 | AC | 427 ms
43,344 KB |
testcase_34 | AC | 433 ms
43,736 KB |
testcase_35 | AC | 438 ms
43,760 KB |
testcase_36 | AC | 430 ms
43,608 KB |
testcase_37 | AC | 428 ms
43,752 KB |
testcase_38 | AC | 441 ms
43,604 KB |
testcase_39 | AC | 433 ms
43,488 KB |
testcase_40 | WA | - |
testcase_41 | WA | - |
testcase_42 | WA | - |
testcase_43 | WA | - |
testcase_44 | WA | - |
testcase_45 | WA | - |
testcase_46 | WA | - |
testcase_47 | WA | - |
testcase_48 | WA | - |
testcase_49 | WA | - |
testcase_50 | WA | - |
testcase_51 | WA | - |
testcase_52 | AC | 425 ms
43,756 KB |
testcase_53 | AC | 445 ms
43,360 KB |
testcase_54 | AC | 434 ms
43,480 KB |
testcase_55 | AC | 427 ms
43,484 KB |
testcase_56 | AC | 430 ms
43,604 KB |
testcase_57 | AC | 425 ms
43,756 KB |
testcase_58 | WA | - |
testcase_59 | WA | - |
testcase_60 | WA | - |
testcase_61 | WA | - |
testcase_62 | AC | 422 ms
43,632 KB |
testcase_63 | AC | 447 ms
43,508 KB |
testcase_64 | AC | 450 ms
43,640 KB |
testcase_65 | WA | - |
testcase_66 | AC | 436 ms
43,756 KB |
testcase_67 | AC | 433 ms
43,480 KB |
testcase_68 | AC | 433 ms
43,860 KB |
testcase_69 | WA | - |
testcase_70 | AC | 431 ms
43,628 KB |
testcase_71 | AC | 430 ms
43,756 KB |
testcase_72 | AC | 432 ms
43,864 KB |
testcase_73 | AC | 435 ms
43,736 KB |
testcase_74 | WA | - |
testcase_75 | AC | 426 ms
43,752 KB |
testcase_76 | AC | 432 ms
43,856 KB |
testcase_77 | WA | - |
testcase_78 | WA | - |
testcase_79 | AC | 430 ms
43,612 KB |
testcase_80 | AC | 431 ms
43,480 KB |
testcase_81 | AC | 426 ms
43,988 KB |
testcase_82 | AC | 521 ms
43,628 KB |
testcase_83 | AC | 423 ms
43,628 KB |
testcase_84 | WA | - |
testcase_85 | AC | 432 ms
43,608 KB |
testcase_86 | WA | - |
testcase_87 | AC | 450 ms
43,764 KB |
testcase_88 | AC | 435 ms
43,736 KB |
testcase_89 | AC | 433 ms
43,504 KB |
testcase_90 | AC | 438 ms
43,632 KB |
testcase_91 | AC | 440 ms
43,760 KB |
testcase_92 | AC | 432 ms
43,756 KB |
testcase_93 | AC | 428 ms
43,992 KB |
testcase_94 | AC | 430 ms
43,608 KB |
testcase_95 | WA | - |
testcase_96 | WA | - |
testcase_97 | AC | 429 ms
43,736 KB |
testcase_98 | AC | 439 ms
43,476 KB |
testcase_99 | WA | - |
testcase_100 | AC | 437 ms
43,604 KB |
testcase_101 | AC | 458 ms
43,356 KB |
testcase_102 | RE | - |
testcase_103 | RE | - |
testcase_104 | RE | - |
testcase_105 | RE | - |
testcase_106 | RE | - |
testcase_107 | RE | - |
testcase_108 | RE | - |
testcase_109 | RE | - |
testcase_110 | RE | - |
testcase_111 | RE | - |
testcase_112 | RE | - |
testcase_113 | RE | - |
testcase_114 | RE | - |
testcase_115 | RE | - |
testcase_116 | RE | - |
testcase_117 | RE | - |
testcase_118 | RE | - |
testcase_119 | RE | - |
testcase_120 | RE | - |
testcase_121 | RE | - |
testcase_122 | WA | - |
testcase_123 | WA | - |
testcase_124 | AC | 422 ms
43,760 KB |
ソースコード
import numpy as np def main(): a = list(map(int, input().split())) if a == [0,0,0]: print(-1) else: ans = np.roots(a) if len(ans) == 0 or ans[0] != float(ans[0]): print(0) elif ans[0] != ans[1]: print(len(ans)) for x in ans: print("{:.20f}".format(x)) else: print(1) print("{:.20f}".format(ans[0])) if __name__ == "__main__": main()