結果
| 問題 | No.550 夏休みの思い出(1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-08-01 12:23:57 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 345 bytes |
| 記録 | |
| コンパイル時間 | 220 ms |
| コンパイル使用メモリ | 77,656 KB |
| 最終ジャッジ日時 | 2025-12-04 00:25:40 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 3 |
| other | RE * 55 |
ソースコード
yuki_550 import math def f(x): return x*x*x+a*x*x+b*x*+c a,b,c=map(int,raw_input().split()) res=[] for i in xrange(-10**6,10**6): if f(i)==0: res.append(i) B=a+i C=a*i+i*i+b x1=-B+math.sqrt(B*B-4*C)/2 x2=-B-math.sqrt(B*B-4*C)/2 res.append(x1) res.append(x2) break res.sort() for i in xrange(3): print "%.0f" % res[i], print