結果

問題 No.955 ax^2+bx+c=0
ユーザー AEnAEn
提出日時 2022-06-15 19:54:37
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 340 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 45,328 KB
最終ジャッジ日時 2024-04-15 05:06:43
合計ジャッジ時間 71,490 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 528 ms
44,960 KB
testcase_01 AC 521 ms
45,096 KB
testcase_02 AC 523 ms
44,192 KB
testcase_03 WA -
testcase_04 AC 524 ms
44,196 KB
testcase_05 AC 522 ms
43,820 KB
testcase_06 AC 529 ms
44,328 KB
testcase_07 AC 530 ms
43,936 KB
testcase_08 AC 543 ms
44,376 KB
testcase_09 AC 531 ms
44,324 KB
testcase_10 AC 522 ms
44,180 KB
testcase_11 AC 527 ms
44,324 KB
testcase_12 AC 530 ms
43,940 KB
testcase_13 AC 529 ms
44,184 KB
testcase_14 AC 527 ms
43,948 KB
testcase_15 AC 536 ms
43,808 KB
testcase_16 AC 525 ms
44,060 KB
testcase_17 AC 532 ms
43,928 KB
testcase_18 AC 536 ms
43,816 KB
testcase_19 AC 534 ms
43,936 KB
testcase_20 AC 527 ms
44,060 KB
testcase_21 AC 533 ms
44,072 KB
testcase_22 AC 538 ms
44,184 KB
testcase_23 AC 530 ms
43,944 KB
testcase_24 AC 532 ms
44,076 KB
testcase_25 AC 527 ms
44,316 KB
testcase_26 AC 533 ms
43,936 KB
testcase_27 AC 533 ms
43,932 KB
testcase_28 AC 537 ms
44,068 KB
testcase_29 AC 534 ms
43,808 KB
testcase_30 AC 527 ms
43,936 KB
testcase_31 AC 529 ms
44,064 KB
testcase_32 AC 533 ms
43,948 KB
testcase_33 AC 536 ms
44,072 KB
testcase_34 AC 528 ms
44,700 KB
testcase_35 AC 531 ms
44,704 KB
testcase_36 AC 528 ms
44,964 KB
testcase_37 AC 533 ms
45,216 KB
testcase_38 AC 526 ms
45,004 KB
testcase_39 AC 533 ms
44,964 KB
testcase_40 AC 532 ms
44,684 KB
testcase_41 AC 529 ms
45,084 KB
testcase_42 AC 535 ms
44,964 KB
testcase_43 AC 535 ms
44,708 KB
testcase_44 AC 531 ms
45,216 KB
testcase_45 AC 533 ms
44,964 KB
testcase_46 AC 529 ms
44,700 KB
testcase_47 AC 548 ms
45,220 KB
testcase_48 AC 555 ms
45,088 KB
testcase_49 AC 561 ms
44,960 KB
testcase_50 AC 564 ms
45,212 KB
testcase_51 AC 559 ms
44,708 KB
testcase_52 AC 552 ms
45,084 KB
testcase_53 AC 553 ms
45,084 KB
testcase_54 AC 550 ms
44,832 KB
testcase_55 AC 552 ms
44,968 KB
testcase_56 AC 542 ms
44,848 KB
testcase_57 AC 554 ms
44,836 KB
testcase_58 WA -
testcase_59 WA -
testcase_60 AC 544 ms
44,188 KB
testcase_61 AC 539 ms
44,068 KB
testcase_62 AC 547 ms
44,700 KB
testcase_63 AC 542 ms
45,208 KB
testcase_64 AC 554 ms
44,072 KB
testcase_65 AC 552 ms
45,212 KB
testcase_66 AC 551 ms
44,188 KB
testcase_67 AC 547 ms
44,960 KB
testcase_68 AC 541 ms
44,056 KB
testcase_69 AC 558 ms
45,124 KB
testcase_70 AC 562 ms
44,832 KB
testcase_71 AC 553 ms
44,072 KB
testcase_72 AC 570 ms
43,944 KB
testcase_73 AC 565 ms
44,824 KB
testcase_74 AC 550 ms
44,832 KB
testcase_75 AC 547 ms
44,196 KB
testcase_76 AC 558 ms
43,808 KB
testcase_77 AC 550 ms
45,092 KB
testcase_78 AC 554 ms
44,880 KB
testcase_79 AC 561 ms
44,700 KB
testcase_80 AC 554 ms
43,932 KB
testcase_81 AC 574 ms
45,224 KB
testcase_82 AC 540 ms
44,076 KB
testcase_83 AC 535 ms
44,968 KB
testcase_84 WA -
testcase_85 AC 547 ms
45,024 KB
testcase_86 WA -
testcase_87 AC 542 ms
44,316 KB
testcase_88 AC 546 ms
43,800 KB
testcase_89 AC 556 ms
44,320 KB
testcase_90 AC 547 ms
45,088 KB
testcase_91 AC 550 ms
45,224 KB
testcase_92 AC 553 ms
44,184 KB
testcase_93 AC 545 ms
43,936 KB
testcase_94 AC 552 ms
44,704 KB
testcase_95 WA -
testcase_96 WA -
testcase_97 AC 541 ms
44,828 KB
testcase_98 AC 538 ms
45,228 KB
testcase_99 WA -
testcase_100 AC 548 ms
44,072 KB
testcase_101 AC 544 ms
44,708 KB
testcase_102 WA -
testcase_103 WA -
testcase_104 WA -
testcase_105 WA -
testcase_106 WA -
testcase_107 WA -
testcase_108 WA -
testcase_109 WA -
testcase_110 WA -
testcase_111 WA -
testcase_112 WA -
testcase_113 WA -
testcase_114 WA -
testcase_115 WA -
testcase_116 WA -
testcase_117 WA -
testcase_118 WA -
testcase_119 WA -
testcase_120 WA -
testcase_121 WA -
testcase_122 AC 584 ms
45,220 KB
testcase_123 AC 594 ms
44,448 KB
testcase_124 AC 558 ms
44,944 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import numpy as np
a,b,c = map(int, input().split())
if a == 0:
    if b == 0:
        print(0)
    else:
        print(1,c/b,sep='\n')
else:
    if b*b-4*a*c>=0:
        p,q=np.roots([a,b,c])
        if p>q:p,q=q,p
        if p!=q:
            print(2,p,q,sep='\n')
        else:
            print(1,p,sep='\n')
    else:
        print(0)
0