結果
問題 | No.955 ax^2+bx+c=0 |
ユーザー | googol_S0 |
提出日時 | 2021-01-03 19:31:33 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 263 bytes |
コンパイル時間 | 115 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 45,352 KB |
最終ジャッジ日時 | 2024-10-13 13:24:33 |
合計ジャッジ時間 | 63,219 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 480 ms
45,088 KB |
testcase_01 | AC | 470 ms
45,096 KB |
testcase_02 | WA | - |
testcase_03 | AC | 457 ms
44,184 KB |
testcase_04 | AC | 465 ms
44,196 KB |
testcase_05 | AC | 465 ms
44,312 KB |
testcase_06 | AC | 480 ms
44,316 KB |
testcase_07 | AC | 469 ms
44,056 KB |
testcase_08 | AC | 464 ms
43,940 KB |
testcase_09 | AC | 458 ms
44,196 KB |
testcase_10 | AC | 470 ms
44,320 KB |
testcase_11 | AC | 463 ms
43,936 KB |
testcase_12 | AC | 470 ms
43,804 KB |
testcase_13 | AC | 458 ms
44,180 KB |
testcase_14 | AC | 460 ms
44,056 KB |
testcase_15 | AC | 455 ms
43,808 KB |
testcase_16 | AC | 464 ms
43,932 KB |
testcase_17 | AC | 509 ms
43,928 KB |
testcase_18 | AC | 460 ms
44,192 KB |
testcase_19 | AC | 456 ms
44,188 KB |
testcase_20 | AC | 461 ms
44,064 KB |
testcase_21 | AC | 465 ms
44,060 KB |
testcase_22 | AC | 466 ms
44,180 KB |
testcase_23 | AC | 474 ms
43,940 KB |
testcase_24 | AC | 466 ms
43,940 KB |
testcase_25 | AC | 463 ms
44,196 KB |
testcase_26 | AC | 471 ms
44,240 KB |
testcase_27 | AC | 477 ms
44,320 KB |
testcase_28 | AC | 463 ms
44,184 KB |
testcase_29 | AC | 460 ms
44,312 KB |
testcase_30 | AC | 469 ms
43,932 KB |
testcase_31 | AC | 474 ms
44,348 KB |
testcase_32 | AC | 475 ms
44,188 KB |
testcase_33 | AC | 472 ms
44,188 KB |
testcase_34 | AC | 481 ms
45,208 KB |
testcase_35 | AC | 487 ms
45,212 KB |
testcase_36 | AC | 474 ms
44,960 KB |
testcase_37 | AC | 479 ms
45,088 KB |
testcase_38 | AC | 474 ms
44,828 KB |
testcase_39 | AC | 480 ms
45,224 KB |
testcase_40 | AC | 464 ms
45,212 KB |
testcase_41 | AC | 482 ms
44,956 KB |
testcase_42 | AC | 465 ms
45,212 KB |
testcase_43 | AC | 463 ms
45,212 KB |
testcase_44 | AC | 457 ms
44,828 KB |
testcase_45 | AC | 464 ms
44,964 KB |
testcase_46 | AC | 465 ms
45,220 KB |
testcase_47 | AC | 471 ms
44,952 KB |
testcase_48 | AC | 469 ms
44,716 KB |
testcase_49 | AC | 462 ms
45,092 KB |
testcase_50 | AC | 457 ms
44,584 KB |
testcase_51 | AC | 472 ms
44,708 KB |
testcase_52 | AC | 478 ms
45,212 KB |
testcase_53 | AC | 471 ms
44,824 KB |
testcase_54 | AC | 466 ms
44,836 KB |
testcase_55 | AC | 487 ms
45,224 KB |
testcase_56 | AC | 475 ms
44,740 KB |
testcase_57 | AC | 469 ms
44,836 KB |
testcase_58 | WA | - |
testcase_59 | WA | - |
testcase_60 | WA | - |
testcase_61 | WA | - |
testcase_62 | AC | 477 ms
45,208 KB |
testcase_63 | AC | 471 ms
45,220 KB |
testcase_64 | WA | - |
testcase_65 | AC | 460 ms
45,208 KB |
testcase_66 | WA | - |
testcase_67 | AC | 467 ms
44,836 KB |
testcase_68 | WA | - |
testcase_69 | AC | 511 ms
44,704 KB |
testcase_70 | AC | 462 ms
44,748 KB |
testcase_71 | WA | - |
testcase_72 | WA | - |
testcase_73 | AC | 469 ms
44,832 KB |
testcase_74 | AC | 461 ms
44,836 KB |
testcase_75 | WA | - |
testcase_76 | WA | - |
testcase_77 | AC | 472 ms
44,956 KB |
testcase_78 | AC | 474 ms
44,832 KB |
testcase_79 | AC | 466 ms
45,216 KB |
testcase_80 | WA | - |
testcase_81 | AC | 469 ms
44,700 KB |
testcase_82 | AC | 470 ms
43,932 KB |
testcase_83 | AC | 474 ms
45,088 KB |
testcase_84 | WA | - |
testcase_85 | AC | 467 ms
45,084 KB |
testcase_86 | WA | - |
testcase_87 | AC | 467 ms
44,064 KB |
testcase_88 | AC | 467 ms
44,192 KB |
testcase_89 | AC | 459 ms
44,196 KB |
testcase_90 | AC | 454 ms
44,876 KB |
testcase_91 | AC | 463 ms
45,216 KB |
testcase_92 | AC | 479 ms
44,444 KB |
testcase_93 | AC | 465 ms
43,808 KB |
testcase_94 | AC | 478 ms
44,696 KB |
testcase_95 | WA | - |
testcase_96 | WA | - |
testcase_97 | AC | 459 ms
44,700 KB |
testcase_98 | AC | 459 ms
45,092 KB |
testcase_99 | WA | - |
testcase_100 | AC | 462 ms
44,440 KB |
testcase_101 | AC | 469 ms
45,084 KB |
testcase_102 | AC | 460 ms
44,328 KB |
testcase_103 | AC | 481 ms
44,608 KB |
testcase_104 | AC | 471 ms
44,712 KB |
testcase_105 | AC | 475 ms
44,452 KB |
testcase_106 | AC | 473 ms
44,840 KB |
testcase_107 | AC | 471 ms
44,568 KB |
testcase_108 | AC | 463 ms
44,440 KB |
testcase_109 | AC | 478 ms
44,484 KB |
testcase_110 | AC | 471 ms
44,704 KB |
testcase_111 | AC | 470 ms
44,576 KB |
testcase_112 | AC | 473 ms
44,308 KB |
testcase_113 | AC | 481 ms
44,952 KB |
testcase_114 | AC | 461 ms
44,956 KB |
testcase_115 | AC | 467 ms
44,452 KB |
testcase_116 | AC | 454 ms
44,696 KB |
testcase_117 | AC | 468 ms
44,452 KB |
testcase_118 | AC | 461 ms
44,572 KB |
testcase_119 | AC | 485 ms
44,576 KB |
testcase_120 | AC | 470 ms
44,700 KB |
testcase_121 | AC | 474 ms
44,828 KB |
testcase_122 | AC | 471 ms
45,080 KB |
testcase_123 | AC | 472 ms
44,444 KB |
testcase_124 | AC | 476 ms
44,440 KB |
ソースコード
import numpy as np a,b,c=map(int,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')