結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 AC 133 ms
30,116 KB
testcase_03 AC 135 ms
30,060 KB
testcase_04 AC 135 ms
30,108 KB
testcase_05 AC 133 ms
30,068 KB
testcase_06 AC 132 ms
30,092 KB
testcase_07 AC 134 ms
30,020 KB
testcase_08 WA -
testcase_09 AC 135 ms
30,128 KB
testcase_10 WA -
testcase_11 AC 132 ms
30,240 KB
testcase_12 AC 134 ms
30,244 KB
testcase_13 AC 132 ms
30,144 KB
testcase_14 AC 134 ms
30,128 KB
testcase_15 AC 136 ms
30,240 KB
testcase_16 AC 135 ms
30,132 KB
testcase_17 AC 134 ms
30,020 KB
testcase_18 AC 133 ms
30,108 KB
testcase_19 AC 137 ms
30,056 KB
testcase_20 AC 138 ms
30,216 KB
testcase_21 AC 136 ms
30,132 KB
testcase_22 AC 135 ms
30,192 KB
testcase_23 AC 135 ms
30,116 KB
testcase_24 AC 137 ms
30,020 KB
testcase_25 AC 136 ms
30,240 KB
testcase_26 AC 136 ms
30,244 KB
testcase_27 AC 136 ms
30,228 KB
testcase_28 AC 135 ms
30,052 KB
testcase_29 AC 133 ms
30,136 KB
testcase_30 AC 140 ms
30,112 KB
testcase_31 AC 138 ms
30,404 KB
testcase_32 AC 136 ms
30,036 KB
testcase_33 AC 139 ms
30,064 KB
testcase_34 AC 141 ms
30,084 KB
testcase_35 AC 138 ms
30,224 KB
testcase_36 AC 137 ms
30,184 KB
testcase_37 AC 136 ms
30,184 KB
testcase_38 AC 136 ms
30,076 KB
testcase_39 AC 135 ms
30,140 KB
testcase_40 AC 137 ms
30,104 KB
testcase_41 AC 134 ms
30,232 KB
testcase_42 AC 133 ms
30,228 KB
testcase_43 AC 135 ms
30,232 KB
testcase_44 AC 138 ms
30,132 KB
testcase_45 AC 135 ms
30,060 KB
testcase_46 AC 137 ms
30,296 KB
testcase_47 AC 138 ms
30,136 KB
testcase_48 AC 137 ms
30,072 KB
testcase_49 AC 134 ms
30,020 KB
testcase_50 AC 136 ms
30,088 KB
testcase_51 AC 135 ms
30,240 KB
testcase_52 AC 132 ms
30,140 KB
testcase_53 AC 133 ms
30,124 KB
testcase_54 AC 134 ms
30,140 KB
testcase_55 AC 132 ms
30,188 KB
testcase_56 AC 135 ms
30,188 KB
testcase_57 AC 139 ms
30,232 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]
roots[2] = -A - roots[:2].sum()
roots.sort()
print(*roots)
0