結果
| 問題 |
No.550 夏休みの思い出(1)
|
| コンテスト | |
| ユーザー |
maspy
|
| 提出日時 | 2020-03-23 16:38:51 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 380 bytes |
| コンパイル時間 | 110 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 45,352 KB |
| 最終ジャッジ日時 | 2024-12-26 10:00:10 |
| 合計ジャッジ時間 | 34,485 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 51 WA * 4 |
ソースコード
#!/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)
maspy