結果
| 問題 | No.550 夏休みの思い出(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-01 10:27:29 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 431 bytes |
| 記録 | |
| コンパイル時間 | 58 ms |
| コンパイル使用メモリ | 80,704 KB |
| 実行使用メモリ | 81,664 KB |
| 最終ジャッジ日時 | 2026-07-18 15:30:37 |
| 合計ジャッジ時間 | 5,553 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 55 |
ソースコード
import numpy as np
def solve(vec,is_complex=False):
dim =len(vec)
if is_complex:
A = np.zeros((dim,dim),dtype=complex)
else:
A = np.zeros((dim,dim))
A[np.arange(dim-1),1+np.arange(dim-1)] =1
A[-1,:] = -vec
ans,vec = np.linalg.eig(A)
return ans
a,b,c=map(int,raw_input().split())
vec0 =np.array([c,b,a])
temp=(solve(vec0))
temp.sort()
for i in xrange(3):
print "%.0f" % temp[i],
print