結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 603 ms
44,992 KB
testcase_01 AC 605 ms
45,244 KB
testcase_02 WA -
testcase_03 AC 619 ms
43,964 KB
testcase_04 AC 633 ms
44,216 KB
testcase_05 AC 660 ms
43,836 KB
testcase_06 AC 641 ms
44,228 KB
testcase_07 AC 624 ms
43,964 KB
testcase_08 AC 603 ms
44,084 KB
testcase_09 AC 590 ms
44,100 KB
testcase_10 AC 626 ms
44,348 KB
testcase_11 AC 628 ms
43,836 KB
testcase_12 AC 588 ms
43,840 KB
testcase_13 AC 607 ms
44,224 KB
testcase_14 AC 597 ms
43,964 KB
testcase_15 AC 608 ms
43,840 KB
testcase_16 AC 607 ms
44,096 KB
testcase_17 AC 631 ms
43,964 KB
testcase_18 AC 619 ms
43,832 KB
testcase_19 AC 620 ms
44,096 KB
testcase_20 AC 620 ms
44,092 KB
testcase_21 AC 622 ms
44,232 KB
testcase_22 AC 637 ms
43,968 KB
testcase_23 AC 665 ms
44,228 KB
testcase_24 AC 668 ms
44,096 KB
testcase_25 AC 647 ms
43,968 KB
testcase_26 AC 622 ms
44,220 KB
testcase_27 AC 592 ms
43,840 KB
testcase_28 AC 573 ms
43,964 KB
testcase_29 AC 573 ms
44,100 KB
testcase_30 AC 566 ms
43,836 KB
testcase_31 AC 566 ms
43,848 KB
testcase_32 AC 579 ms
44,224 KB
testcase_33 AC 555 ms
44,220 KB
testcase_34 AC 565 ms
44,728 KB
testcase_35 AC 596 ms
45,000 KB
testcase_36 AC 585 ms
45,120 KB
testcase_37 AC 565 ms
45,116 KB
testcase_38 AC 567 ms
44,744 KB
testcase_39 AC 556 ms
44,992 KB
testcase_40 AC 574 ms
44,984 KB
testcase_41 AC 568 ms
44,736 KB
testcase_42 AC 564 ms
45,124 KB
testcase_43 AC 562 ms
44,732 KB
testcase_44 AC 563 ms
44,992 KB
testcase_45 AC 576 ms
45,120 KB
testcase_46 AC 567 ms
45,116 KB
testcase_47 AC 565 ms
45,120 KB
testcase_48 AC 557 ms
45,020 KB
testcase_49 AC 584 ms
44,744 KB
testcase_50 AC 568 ms
44,996 KB
testcase_51 AC 596 ms
45,112 KB
testcase_52 AC 584 ms
44,736 KB
testcase_53 AC 591 ms
44,732 KB
testcase_54 AC 576 ms
44,988 KB
testcase_55 AC 583 ms
44,728 KB
testcase_56 AC 596 ms
44,996 KB
testcase_57 AC 578 ms
44,860 KB
testcase_58 WA -
testcase_59 WA -
testcase_60 WA -
testcase_61 WA -
testcase_62 AC 559 ms
44,732 KB
testcase_63 AC 555 ms
45,116 KB
testcase_64 WA -
testcase_65 AC 558 ms
44,728 KB
testcase_66 WA -
testcase_67 AC 549 ms
44,988 KB
testcase_68 WA -
testcase_69 AC 552 ms
44,736 KB
testcase_70 AC 555 ms
44,732 KB
testcase_71 WA -
testcase_72 WA -
testcase_73 AC 562 ms
44,864 KB
testcase_74 AC 557 ms
44,740 KB
testcase_75 WA -
testcase_76 WA -
testcase_77 AC 556 ms
44,736 KB
testcase_78 AC 553 ms
45,244 KB
testcase_79 AC 566 ms
44,604 KB
testcase_80 WA -
testcase_81 AC 555 ms
44,984 KB
testcase_82 AC 557 ms
44,220 KB
testcase_83 AC 567 ms
44,736 KB
testcase_84 WA -
testcase_85 AC 558 ms
45,124 KB
testcase_86 WA -
testcase_87 AC 553 ms
44,096 KB
testcase_88 AC 540 ms
44,092 KB
testcase_89 AC 551 ms
44,224 KB
testcase_90 AC 540 ms
44,744 KB
testcase_91 AC 542 ms
44,996 KB
testcase_92 AC 546 ms
43,840 KB
testcase_93 AC 545 ms
44,216 KB
testcase_94 AC 552 ms
45,120 KB
testcase_95 WA -
testcase_96 WA -
testcase_97 AC 581 ms
44,740 KB
testcase_98 AC 578 ms
44,864 KB
testcase_99 WA -
testcase_100 AC 544 ms
43,844 KB
testcase_101 AC 551 ms
44,740 KB
testcase_102 AC 541 ms
44,616 KB
testcase_103 AC 546 ms
44,472 KB
testcase_104 AC 553 ms
44,864 KB
testcase_105 AC 548 ms
44,864 KB
testcase_106 AC 570 ms
44,476 KB
testcase_107 AC 549 ms
44,616 KB
testcase_108 AC 546 ms
44,868 KB
testcase_109 AC 534 ms
44,860 KB
testcase_110 AC 558 ms
44,612 KB
testcase_111 AC 569 ms
44,732 KB
testcase_112 AC 567 ms
44,356 KB
testcase_113 AC 551 ms
44,728 KB
testcase_114 AC 549 ms
44,344 KB
testcase_115 AC 540 ms
44,604 KB
testcase_116 AC 531 ms
44,352 KB
testcase_117 AC 527 ms
44,472 KB
testcase_118 AC 546 ms
44,476 KB
testcase_119 AC 552 ms
44,472 KB
testcase_120 AC 552 ms
44,360 KB
testcase_121 AC 543 ms
44,936 KB
testcase_122 AC 536 ms
44,736 KB
testcase_123 AC 533 ms
44,352 KB
testcase_124 AC 529 ms
44,744 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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')
0