結果
問題 | No.955 ax^2+bx+c=0 |
ユーザー | googol_S0 |
提出日時 | 2021-01-03 19:50:37 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 484 bytes |
コンパイル時間 | 213 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 45,252 KB |
最終ジャッジ日時 | 2024-10-13 13:57:13 |
合計ジャッジ時間 | 63,317 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 475 ms
45,120 KB |
testcase_01 | AC | 467 ms
44,860 KB |
testcase_02 | WA | - |
testcase_03 | AC | 468 ms
43,852 KB |
testcase_04 | AC | 470 ms
43,840 KB |
testcase_05 | AC | 465 ms
44,228 KB |
testcase_06 | AC | 464 ms
43,832 KB |
testcase_07 | AC | 472 ms
44,252 KB |
testcase_08 | AC | 519 ms
43,840 KB |
testcase_09 | AC | 467 ms
44,092 KB |
testcase_10 | AC | 488 ms
44,312 KB |
testcase_11 | AC | 470 ms
43,964 KB |
testcase_12 | AC | 476 ms
43,972 KB |
testcase_13 | AC | 469 ms
43,848 KB |
testcase_14 | AC | 472 ms
44,096 KB |
testcase_15 | AC | 461 ms
43,832 KB |
testcase_16 | AC | 476 ms
43,836 KB |
testcase_17 | AC | 474 ms
43,972 KB |
testcase_18 | AC | 469 ms
43,968 KB |
testcase_19 | AC | 465 ms
43,968 KB |
testcase_20 | AC | 474 ms
43,832 KB |
testcase_21 | AC | 481 ms
44,476 KB |
testcase_22 | AC | 479 ms
44,228 KB |
testcase_23 | AC | 473 ms
44,220 KB |
testcase_24 | AC | 478 ms
44,212 KB |
testcase_25 | AC | 465 ms
44,092 KB |
testcase_26 | AC | 471 ms
44,224 KB |
testcase_27 | AC | 470 ms
44,352 KB |
testcase_28 | AC | 468 ms
43,840 KB |
testcase_29 | AC | 467 ms
43,836 KB |
testcase_30 | AC | 473 ms
44,228 KB |
testcase_31 | AC | 467 ms
44,224 KB |
testcase_32 | AC | 478 ms
43,836 KB |
testcase_33 | AC | 477 ms
44,104 KB |
testcase_34 | AC | 469 ms
44,996 KB |
testcase_35 | AC | 515 ms
44,856 KB |
testcase_36 | AC | 525 ms
44,992 KB |
testcase_37 | AC | 476 ms
44,868 KB |
testcase_38 | AC | 469 ms
44,612 KB |
testcase_39 | AC | 474 ms
44,600 KB |
testcase_40 | AC | 474 ms
45,244 KB |
testcase_41 | AC | 474 ms
45,116 KB |
testcase_42 | AC | 472 ms
45,116 KB |
testcase_43 | AC | 478 ms
44,992 KB |
testcase_44 | AC | 470 ms
44,984 KB |
testcase_45 | AC | 472 ms
45,120 KB |
testcase_46 | AC | 475 ms
44,868 KB |
testcase_47 | AC | 472 ms
44,732 KB |
testcase_48 | AC | 465 ms
44,604 KB |
testcase_49 | AC | 467 ms
44,608 KB |
testcase_50 | AC | 471 ms
44,736 KB |
testcase_51 | AC | 466 ms
44,600 KB |
testcase_52 | AC | 492 ms
45,120 KB |
testcase_53 | AC | 477 ms
44,732 KB |
testcase_54 | AC | 481 ms
44,988 KB |
testcase_55 | AC | 475 ms
44,860 KB |
testcase_56 | AC | 477 ms
44,992 KB |
testcase_57 | AC | 486 ms
44,612 KB |
testcase_58 | WA | - |
testcase_59 | WA | - |
testcase_60 | WA | - |
testcase_61 | WA | - |
testcase_62 | AC | 475 ms
45,116 KB |
testcase_63 | AC | 465 ms
44,860 KB |
testcase_64 | WA | - |
testcase_65 | AC | 470 ms
45,120 KB |
testcase_66 | WA | - |
testcase_67 | AC | 463 ms
45,120 KB |
testcase_68 | WA | - |
testcase_69 | AC | 465 ms
45,116 KB |
testcase_70 | AC | 467 ms
44,612 KB |
testcase_71 | WA | - |
testcase_72 | WA | - |
testcase_73 | AC | 463 ms
44,856 KB |
testcase_74 | AC | 471 ms
44,612 KB |
testcase_75 | WA | - |
testcase_76 | WA | - |
testcase_77 | AC | 466 ms
44,856 KB |
testcase_78 | AC | 469 ms
44,744 KB |
testcase_79 | AC | 468 ms
44,864 KB |
testcase_80 | WA | - |
testcase_81 | AC | 470 ms
44,736 KB |
testcase_82 | AC | 478 ms
44,256 KB |
testcase_83 | AC | 462 ms
45,244 KB |
testcase_84 | WA | - |
testcase_85 | AC | 475 ms
45,252 KB |
testcase_86 | WA | - |
testcase_87 | AC | 469 ms
43,964 KB |
testcase_88 | AC | 466 ms
43,836 KB |
testcase_89 | AC | 469 ms
44,092 KB |
testcase_90 | AC | 464 ms
44,996 KB |
testcase_91 | AC | 471 ms
44,856 KB |
testcase_92 | AC | 460 ms
43,964 KB |
testcase_93 | AC | 462 ms
44,092 KB |
testcase_94 | AC | 457 ms
44,612 KB |
testcase_95 | WA | - |
testcase_96 | WA | - |
testcase_97 | AC | 472 ms
45,124 KB |
testcase_98 | AC | 462 ms
44,864 KB |
testcase_99 | WA | - |
testcase_100 | AC | 456 ms
43,708 KB |
testcase_101 | AC | 486 ms
44,604 KB |
testcase_102 | AC | 457 ms
44,736 KB |
testcase_103 | AC | 469 ms
44,476 KB |
testcase_104 | AC | 466 ms
44,732 KB |
testcase_105 | AC | 469 ms
44,600 KB |
testcase_106 | AC | 464 ms
44,732 KB |
testcase_107 | AC | 471 ms
44,860 KB |
testcase_108 | AC | 463 ms
44,552 KB |
testcase_109 | AC | 464 ms
44,360 KB |
testcase_110 | AC | 463 ms
44,732 KB |
testcase_111 | AC | 472 ms
44,860 KB |
testcase_112 | AC | 470 ms
44,488 KB |
testcase_113 | AC | 475 ms
44,612 KB |
testcase_114 | AC | 457 ms
44,736 KB |
testcase_115 | AC | 465 ms
44,748 KB |
testcase_116 | AC | 461 ms
44,344 KB |
testcase_117 | AC | 470 ms
44,860 KB |
testcase_118 | AC | 463 ms
44,864 KB |
testcase_119 | AC | 485 ms
44,740 KB |
testcase_120 | AC | 463 ms
44,988 KB |
testcase_121 | AC | 461 ms
44,732 KB |
testcase_122 | AC | 466 ms
45,120 KB |
testcase_123 | AC | 460 ms
44,736 KB |
testcase_124 | AC | 519 ms
44,612 KB |
ソースコード
import numpy as np a,b,c=map(lambda x:int(x)*(10**18),input().split()) if a==b==0: if c: print(0) else: print(-1) elif a==0: x=sorted(set(np.roots([b,c]))) for i in range(len(x)-1,-1,-1): if str(type(x[i]))!="<class 'numpy.float64'>": del x[i] print(len(x)) print(*x,sep='\n') else: x=sorted(set(np.roots([a,b,c]))) for i in range(len(x)-1,-1,-1): if str(type(x[i]))!="<class 'numpy.float64'>": del x[i] print(len(x)) print(*x,sep='\n')