結果

問題 No.955 ax^2+bx+c=0
ユーザー googol_S0googol_S0
提出日時 2021-01-03 19:33:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 243 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 45,828 KB
最終ジャッジ日時 2024-04-21 14:41:29
合計ジャッジ時間 75,330 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 545 ms
45,576 KB
testcase_01 AC 557 ms
45,324 KB
testcase_02 WA -
testcase_03 AC 539 ms
44,296 KB
testcase_04 AC 547 ms
44,548 KB
testcase_05 AC 557 ms
44,420 KB
testcase_06 AC 554 ms
44,420 KB
testcase_07 AC 549 ms
44,552 KB
testcase_08 AC 558 ms
44,424 KB
testcase_09 AC 556 ms
44,420 KB
testcase_10 AC 555 ms
44,424 KB
testcase_11 AC 551 ms
44,552 KB
testcase_12 AC 558 ms
44,424 KB
testcase_13 AC 556 ms
44,296 KB
testcase_14 AC 549 ms
44,296 KB
testcase_15 AC 543 ms
44,552 KB
testcase_16 AC 560 ms
44,424 KB
testcase_17 AC 549 ms
44,292 KB
testcase_18 AC 555 ms
44,420 KB
testcase_19 AC 563 ms
44,804 KB
testcase_20 AC 560 ms
44,292 KB
testcase_21 AC 566 ms
44,168 KB
testcase_22 AC 560 ms
44,552 KB
testcase_23 AC 561 ms
44,416 KB
testcase_24 AC 567 ms
44,428 KB
testcase_25 AC 562 ms
44,556 KB
testcase_26 AC 559 ms
44,548 KB
testcase_27 AC 561 ms
44,292 KB
testcase_28 AC 552 ms
44,676 KB
testcase_29 AC 552 ms
44,300 KB
testcase_30 AC 548 ms
44,804 KB
testcase_31 AC 548 ms
44,428 KB
testcase_32 AC 560 ms
44,548 KB
testcase_33 AC 552 ms
44,420 KB
testcase_34 AC 556 ms
45,320 KB
testcase_35 AC 548 ms
45,064 KB
testcase_36 AC 557 ms
45,320 KB
testcase_37 AC 545 ms
45,316 KB
testcase_38 AC 556 ms
45,448 KB
testcase_39 AC 554 ms
45,320 KB
testcase_40 AC 557 ms
45,828 KB
testcase_41 AC 557 ms
45,316 KB
testcase_42 AC 549 ms
45,324 KB
testcase_43 AC 560 ms
45,364 KB
testcase_44 AC 566 ms
45,188 KB
testcase_45 AC 553 ms
45,444 KB
testcase_46 AC 551 ms
45,700 KB
testcase_47 AC 564 ms
45,192 KB
testcase_48 AC 556 ms
45,500 KB
testcase_49 AC 543 ms
45,200 KB
testcase_50 AC 550 ms
45,320 KB
testcase_51 AC 569 ms
45,308 KB
testcase_52 AC 564 ms
45,196 KB
testcase_53 AC 541 ms
45,064 KB
testcase_54 AC 541 ms
45,192 KB
testcase_55 AC 546 ms
45,440 KB
testcase_56 AC 549 ms
45,064 KB
testcase_57 AC 546 ms
45,192 KB
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 WA -
testcase_62 AC 544 ms
45,056 KB
testcase_63 AC 536 ms
45,444 KB
testcase_64 WA -
testcase_65 AC 536 ms
45,452 KB
testcase_66 WA -
testcase_67 AC 566 ms
45,316 KB
testcase_68 WA -
testcase_69 AC 543 ms
45,316 KB
testcase_70 AC 541 ms
45,312 KB
testcase_71 WA -
testcase_72 WA -
testcase_73 AC 549 ms
45,448 KB
testcase_74 AC 538 ms
45,444 KB
testcase_75 WA -
testcase_76 WA -
testcase_77 AC 531 ms
45,584 KB
testcase_78 AC 530 ms
45,064 KB
testcase_79 AC 542 ms
45,188 KB
testcase_80 WA -
testcase_81 AC 533 ms
45,192 KB
testcase_82 AC 554 ms
44,288 KB
testcase_83 AC 559 ms
45,444 KB
testcase_84 WA -
testcase_85 AC 549 ms
45,316 KB
testcase_86 WA -
testcase_87 AC 545 ms
44,300 KB
testcase_88 AC 534 ms
44,552 KB
testcase_89 AC 545 ms
44,804 KB
testcase_90 AC 569 ms
45,448 KB
testcase_91 AC 548 ms
45,056 KB
testcase_92 AC 554 ms
44,292 KB
testcase_93 AC 549 ms
44,288 KB
testcase_94 AC 540 ms
45,060 KB
testcase_95 WA -
testcase_96 WA -
testcase_97 AC 542 ms
45,440 KB
testcase_98 AC 556 ms
45,444 KB
testcase_99 WA -
testcase_100 AC 534 ms
44,292 KB
testcase_101 AC 547 ms
45,452 KB
testcase_102 AC 548 ms
45,188 KB
testcase_103 AC 541 ms
44,936 KB
testcase_104 AC 573 ms
45,064 KB
testcase_105 AC 544 ms
44,680 KB
testcase_106 AC 564 ms
44,680 KB
testcase_107 AC 570 ms
44,936 KB
testcase_108 AC 550 ms
45,056 KB
testcase_109 AC 553 ms
45,060 KB
testcase_110 AC 567 ms
44,816 KB
testcase_111 AC 570 ms
45,192 KB
testcase_112 AC 558 ms
45,192 KB
testcase_113 AC 543 ms
44,808 KB
testcase_114 AC 539 ms
45,316 KB
testcase_115 AC 545 ms
44,684 KB
testcase_116 AC 536 ms
45,064 KB
testcase_117 AC 543 ms
44,940 KB
testcase_118 AC 546 ms
44,672 KB
testcase_119 AC 542 ms
44,804 KB
testcase_120 AC 551 ms
45,064 KB
testcase_121 AC 551 ms
44,680 KB
testcase_122 AC 540 ms
45,188 KB
testcase_123 AC 560 ms
45,192 KB
testcase_124 AC 553 ms
44,676 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
getcontext().prec=100
import numpy as np
a,b,c=map(Decimal,input().split())
if a==b==0:
  if c:
    print(0)
  else:
    print(-1)
elif a==0:
  x=sorted(set(np.roots([b,c])))
  print(len(x))
  print(*x,sep='\n')
else:
  x=sorted(set(np.roots([a,b,c])))
  print(len(x))
  print(*x,sep='\n')
0