結果

問題 No.955 ax^2+bx+c=0
ユーザー convexineqconvexineq
提出日時 2021-05-21 21:07:32
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 326 bytes
コンパイル時間 393 ms
コンパイル使用メモリ 82,008 KB
実行使用メモリ 54,436 KB
最終ジャッジ日時 2024-04-18 14:18:35
合計ジャッジ時間 7,290 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,080 KB
testcase_01 AC 37 ms
52,012 KB
testcase_02 AC 35 ms
52,172 KB
testcase_03 AC 36 ms
52,508 KB
testcase_04 AC 36 ms
52,576 KB
testcase_05 AC 36 ms
52,372 KB
testcase_06 AC 35 ms
53,560 KB
testcase_07 AC 34 ms
52,908 KB
testcase_08 AC 35 ms
52,832 KB
testcase_09 AC 35 ms
53,472 KB
testcase_10 AC 38 ms
52,404 KB
testcase_11 AC 35 ms
51,744 KB
testcase_12 AC 34 ms
52,188 KB
testcase_13 AC 35 ms
52,776 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 AC 37 ms
52,296 KB
testcase_25 AC 36 ms
52,204 KB
testcase_26 AC 35 ms
52,824 KB
testcase_27 AC 37 ms
52,752 KB
testcase_28 AC 36 ms
51,940 KB
testcase_29 AC 37 ms
52,600 KB
testcase_30 AC 36 ms
53,372 KB
testcase_31 AC 35 ms
52,200 KB
testcase_32 AC 36 ms
53,056 KB
testcase_33 AC 33 ms
52,188 KB
testcase_34 AC 34 ms
53,080 KB
testcase_35 AC 36 ms
52,380 KB
testcase_36 AC 37 ms
52,072 KB
testcase_37 AC 37 ms
52,624 KB
testcase_38 AC 35 ms
52,756 KB
testcase_39 AC 36 ms
52,080 KB
testcase_40 AC 36 ms
52,984 KB
testcase_41 AC 36 ms
53,280 KB
testcase_42 AC 36 ms
53,076 KB
testcase_43 AC 36 ms
53,712 KB
testcase_44 AC 37 ms
52,868 KB
testcase_45 AC 36 ms
54,320 KB
testcase_46 AC 35 ms
52,636 KB
testcase_47 AC 34 ms
52,656 KB
testcase_48 AC 36 ms
52,552 KB
testcase_49 AC 36 ms
52,588 KB
testcase_50 AC 37 ms
52,692 KB
testcase_51 AC 35 ms
52,436 KB
testcase_52 AC 34 ms
53,532 KB
testcase_53 AC 36 ms
52,132 KB
testcase_54 AC 37 ms
52,312 KB
testcase_55 AC 35 ms
52,560 KB
testcase_56 AC 35 ms
52,396 KB
testcase_57 AC 36 ms
52,216 KB
testcase_58 AC 35 ms
51,688 KB
testcase_59 AC 34 ms
52,820 KB
testcase_60 AC 35 ms
52,616 KB
testcase_61 AC 35 ms
52,604 KB
testcase_62 AC 34 ms
52,668 KB
testcase_63 AC 35 ms
53,020 KB
testcase_64 AC 36 ms
53,092 KB
testcase_65 AC 34 ms
52,384 KB
testcase_66 AC 36 ms
52,464 KB
testcase_67 AC 36 ms
52,724 KB
testcase_68 AC 36 ms
52,888 KB
testcase_69 AC 34 ms
52,936 KB
testcase_70 AC 34 ms
52,696 KB
testcase_71 AC 35 ms
52,564 KB
testcase_72 AC 33 ms
52,548 KB
testcase_73 AC 32 ms
52,756 KB
testcase_74 AC 34 ms
53,068 KB
testcase_75 AC 37 ms
51,900 KB
testcase_76 AC 37 ms
52,432 KB
testcase_77 AC 33 ms
52,560 KB
testcase_78 AC 38 ms
52,992 KB
testcase_79 AC 36 ms
53,480 KB
testcase_80 AC 35 ms
53,492 KB
testcase_81 AC 36 ms
51,952 KB
testcase_82 AC 35 ms
52,308 KB
testcase_83 AC 37 ms
53,364 KB
testcase_84 AC 35 ms
53,284 KB
testcase_85 AC 36 ms
53,128 KB
testcase_86 AC 36 ms
53,512 KB
testcase_87 AC 37 ms
52,896 KB
testcase_88 AC 36 ms
53,052 KB
testcase_89 AC 37 ms
52,504 KB
testcase_90 AC 35 ms
53,252 KB
testcase_91 AC 36 ms
52,368 KB
testcase_92 AC 36 ms
52,440 KB
testcase_93 AC 37 ms
53,480 KB
testcase_94 AC 35 ms
51,636 KB
testcase_95 AC 36 ms
52,708 KB
testcase_96 AC 34 ms
53,948 KB
testcase_97 AC 39 ms
52,748 KB
testcase_98 AC 34 ms
52,820 KB
testcase_99 AC 34 ms
52,996 KB
testcase_100 AC 35 ms
52,152 KB
testcase_101 AC 35 ms
51,936 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 35 ms
52,284 KB
testcase_123 AC 37 ms
52,680 KB
testcase_124 AC 34 ms
51,748 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a,b,c = map(int,input().split())
D = b*b-4*a*c
if a==0:
    if b==0:
        print(0 if c else -1)
    else:
        print(-c/b)
elif D < 0:
    print(0)
elif D==0:
    print(1)
    print(-b/2/a)
else:
    print(2)
    if b < 0:
        a,b,c = -a,-b,-c
    r = -(b+D**0.5)/2/a
    s = c/a/r
    print(*sorted([r,s]),sep="\n")
0