結果
問題 | No.955 ax^2+bx+c=0 |
ユーザー | googol_S0 |
提出日時 | 2021-01-03 19:53:06 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 514 bytes |
コンパイル時間 | 187 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 43,880 KB |
最終ジャッジ日時 | 2024-10-13 14:00:43 |
合計ジャッジ時間 | 62,014 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 456 ms
43,748 KB |
testcase_01 | AC | 475 ms
43,372 KB |
testcase_02 | AC | 456 ms
43,628 KB |
testcase_03 | AC | 461 ms
43,756 KB |
testcase_04 | AC | 465 ms
43,628 KB |
testcase_05 | AC | 464 ms
43,628 KB |
testcase_06 | AC | 514 ms
43,620 KB |
testcase_07 | AC | 445 ms
43,352 KB |
testcase_08 | AC | 457 ms
43,376 KB |
testcase_09 | AC | 448 ms
43,372 KB |
testcase_10 | AC | 451 ms
43,372 KB |
testcase_11 | AC | 449 ms
43,756 KB |
testcase_12 | AC | 446 ms
43,480 KB |
testcase_13 | AC | 445 ms
43,628 KB |
testcase_14 | AC | 451 ms
43,384 KB |
testcase_15 | AC | 448 ms
43,376 KB |
testcase_16 | AC | 460 ms
43,220 KB |
testcase_17 | AC | 469 ms
43,248 KB |
testcase_18 | AC | 457 ms
43,736 KB |
testcase_19 | AC | 462 ms
43,368 KB |
testcase_20 | AC | 454 ms
43,624 KB |
testcase_21 | AC | 453 ms
43,756 KB |
testcase_22 | AC | 458 ms
43,756 KB |
testcase_23 | AC | 465 ms
43,372 KB |
testcase_24 | AC | 458 ms
43,344 KB |
testcase_25 | AC | 458 ms
43,348 KB |
testcase_26 | AC | 457 ms
43,372 KB |
testcase_27 | AC | 462 ms
43,500 KB |
testcase_28 | AC | 465 ms
43,476 KB |
testcase_29 | AC | 458 ms
43,624 KB |
testcase_30 | AC | 456 ms
43,732 KB |
testcase_31 | AC | 463 ms
43,352 KB |
testcase_32 | AC | 461 ms
43,752 KB |
testcase_33 | AC | 459 ms
43,624 KB |
testcase_34 | AC | 452 ms
43,752 KB |
testcase_35 | AC | 454 ms
43,496 KB |
testcase_36 | AC | 446 ms
43,496 KB |
testcase_37 | AC | 450 ms
43,604 KB |
testcase_38 | AC | 463 ms
43,496 KB |
testcase_39 | AC | 463 ms
43,860 KB |
testcase_40 | AC | 458 ms
43,628 KB |
testcase_41 | AC | 451 ms
43,496 KB |
testcase_42 | AC | 460 ms
43,496 KB |
testcase_43 | AC | 468 ms
43,756 KB |
testcase_44 | AC | 467 ms
43,632 KB |
testcase_45 | AC | 459 ms
43,752 KB |
testcase_46 | AC | 456 ms
43,628 KB |
testcase_47 | AC | 452 ms
43,760 KB |
testcase_48 | AC | 460 ms
43,476 KB |
testcase_49 | AC | 448 ms
43,368 KB |
testcase_50 | AC | 458 ms
43,496 KB |
testcase_51 | AC | 461 ms
43,472 KB |
testcase_52 | AC | 454 ms
43,356 KB |
testcase_53 | AC | 462 ms
43,376 KB |
testcase_54 | AC | 456 ms
43,604 KB |
testcase_55 | AC | 476 ms
43,368 KB |
testcase_56 | AC | 472 ms
43,368 KB |
testcase_57 | AC | 460 ms
43,620 KB |
testcase_58 | WA | - |
testcase_59 | WA | - |
testcase_60 | WA | - |
testcase_61 | WA | - |
testcase_62 | AC | 474 ms
43,500 KB |
testcase_63 | AC | 480 ms
43,220 KB |
testcase_64 | AC | 489 ms
43,480 KB |
testcase_65 | AC | 464 ms
43,752 KB |
testcase_66 | AC | 464 ms
43,496 KB |
testcase_67 | AC | 466 ms
43,604 KB |
testcase_68 | AC | 462 ms
43,628 KB |
testcase_69 | AC | 468 ms
43,628 KB |
testcase_70 | AC | 462 ms
43,620 KB |
testcase_71 | AC | 463 ms
43,624 KB |
testcase_72 | AC | 469 ms
43,628 KB |
testcase_73 | AC | 465 ms
43,624 KB |
testcase_74 | AC | 458 ms
43,372 KB |
testcase_75 | AC | 468 ms
43,756 KB |
testcase_76 | AC | 478 ms
43,864 KB |
testcase_77 | AC | 455 ms
43,864 KB |
testcase_78 | AC | 454 ms
43,508 KB |
testcase_79 | AC | 452 ms
43,620 KB |
testcase_80 | AC | 460 ms
43,504 KB |
testcase_81 | AC | 459 ms
43,364 KB |
testcase_82 | AC | 453 ms
43,368 KB |
testcase_83 | AC | 463 ms
43,756 KB |
testcase_84 | WA | - |
testcase_85 | AC | 459 ms
43,876 KB |
testcase_86 | WA | - |
testcase_87 | AC | 458 ms
43,760 KB |
testcase_88 | AC | 458 ms
43,864 KB |
testcase_89 | AC | 447 ms
43,496 KB |
testcase_90 | AC | 467 ms
43,600 KB |
testcase_91 | AC | 472 ms
43,380 KB |
testcase_92 | AC | 503 ms
43,624 KB |
testcase_93 | AC | 502 ms
43,224 KB |
testcase_94 | AC | 507 ms
43,372 KB |
testcase_95 | WA | - |
testcase_96 | WA | - |
testcase_97 | AC | 512 ms
43,760 KB |
testcase_98 | AC | 483 ms
43,504 KB |
testcase_99 | WA | - |
testcase_100 | AC | 490 ms
43,620 KB |
testcase_101 | AC | 483 ms
43,632 KB |
testcase_102 | AC | 486 ms
43,408 KB |
testcase_103 | AC | 485 ms
43,632 KB |
testcase_104 | AC | 469 ms
43,492 KB |
testcase_105 | AC | 468 ms
43,620 KB |
testcase_106 | AC | 478 ms
43,624 KB |
testcase_107 | AC | 470 ms
43,752 KB |
testcase_108 | AC | 470 ms
43,604 KB |
testcase_109 | AC | 476 ms
43,476 KB |
testcase_110 | AC | 485 ms
43,372 KB |
testcase_111 | AC | 477 ms
43,628 KB |
testcase_112 | AC | 500 ms
43,624 KB |
testcase_113 | AC | 479 ms
43,368 KB |
testcase_114 | AC | 488 ms
43,224 KB |
testcase_115 | AC | 475 ms
43,368 KB |
testcase_116 | AC | 485 ms
43,624 KB |
testcase_117 | AC | 485 ms
43,624 KB |
testcase_118 | AC | 481 ms
43,752 KB |
testcase_119 | AC | 476 ms
43,372 KB |
testcase_120 | AC | 471 ms
43,600 KB |
testcase_121 | AC | 466 ms
43,504 KB |
testcase_122 | AC | 487 ms
43,624 KB |
testcase_123 | AC | 468 ms
43,472 KB |
testcase_124 | AC | 477 ms
43,372 KB |
ソースコード
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)) if 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)) if len(x): print(*x,sep='\n')