結果

問題 No.550 夏休みの思い出(1)
ユーザー maspymaspy
提出日時 2020-03-23 16:42:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 553 bytes
コンパイル時間 194 ms
コンパイル使用メモリ 10,892 KB
実行使用メモリ 30,628 KB
最終ジャッジ日時 2023-08-27 03:15:00
合計ジャッジ時間 12,232 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 130 ms
30,464 KB
testcase_03 AC 131 ms
30,412 KB
testcase_04 AC 131 ms
30,480 KB
testcase_05 AC 132 ms
30,428 KB
testcase_06 AC 131 ms
30,560 KB
testcase_07 AC 129 ms
30,484 KB
testcase_08 WA -
testcase_09 AC 131 ms
30,484 KB
testcase_10 AC 132 ms
30,520 KB
testcase_11 AC 131 ms
30,428 KB
testcase_12 AC 132 ms
30,416 KB
testcase_13 AC 131 ms
30,456 KB
testcase_14 AC 132 ms
30,380 KB
testcase_15 AC 136 ms
30,360 KB
testcase_16 AC 133 ms
30,348 KB
testcase_17 AC 132 ms
30,504 KB
testcase_18 AC 132 ms
30,504 KB
testcase_19 AC 133 ms
30,556 KB
testcase_20 AC 131 ms
30,396 KB
testcase_21 AC 131 ms
30,560 KB
testcase_22 AC 134 ms
30,488 KB
testcase_23 AC 134 ms
30,404 KB
testcase_24 AC 136 ms
30,372 KB
testcase_25 AC 134 ms
30,472 KB
testcase_26 AC 134 ms
30,376 KB
testcase_27 AC 133 ms
30,516 KB
testcase_28 AC 133 ms
30,384 KB
testcase_29 AC 132 ms
30,456 KB
testcase_30 AC 133 ms
30,592 KB
testcase_31 AC 134 ms
30,476 KB
testcase_32 AC 133 ms
30,388 KB
testcase_33 AC 132 ms
30,456 KB
testcase_34 AC 131 ms
30,536 KB
testcase_35 AC 129 ms
30,456 KB
testcase_36 AC 130 ms
30,420 KB
testcase_37 AC 130 ms
30,404 KB
testcase_38 AC 131 ms
30,492 KB
testcase_39 AC 130 ms
30,560 KB
testcase_40 AC 130 ms
30,404 KB
testcase_41 AC 131 ms
30,572 KB
testcase_42 AC 129 ms
30,424 KB
testcase_43 AC 130 ms
30,440 KB
testcase_44 AC 131 ms
30,508 KB
testcase_45 AC 131 ms
30,456 KB
testcase_46 AC 130 ms
30,472 KB
testcase_47 AC 130 ms
30,428 KB
testcase_48 AC 129 ms
30,548 KB
testcase_49 AC 129 ms
30,340 KB
testcase_50 AC 131 ms
30,480 KB
testcase_51 AC 132 ms
30,564 KB
testcase_52 AC 132 ms
30,360 KB
testcase_53 AC 133 ms
30,396 KB
testcase_54 AC 133 ms
30,492 KB
testcase_55 AC 131 ms
30,484 KB
testcase_56 AC 131 ms
30,500 KB
testcase_57 AC 134 ms
30,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/ python3.8
import sys
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
import numpy as np

A, B, C = map(int, read().split())

f = [1, A, B, C]
roots = np.roots(f)
roots = np.rint(roots).astype(np.int64)
ind = np.abs(roots).argsort()
roots = roots[ind]
r = roots[0]

f = [1, A + r, B + r * (A + r)]
roots = np.roots(f)
roots = np.rint(roots).astype(np.int64)
ind = np.abs(roots).argsort()
roots = roots[ind]
s = roots[0]

roots = np.array([r, s, -A - r - s])
roots.sort()
print(*roots)
0