結果

問題 No.550 夏休みの思い出(1)
ユーザー pluto77pluto77
提出日時 2017-08-01 13:02:53
言語 Python2
(2.7.18)
結果
AC  
実行時間 669 ms / 2,000 ms
コード長 335 bytes
コンパイル時間 49 ms
コンパイル使用メモリ 6,588 KB
実行使用メモリ 69,568 KB
最終ジャッジ日時 2023-08-01 14:04:52
合計ジャッジ時間 25,771 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 665 ms
69,520 KB
testcase_01 AC 656 ms
69,388 KB
testcase_02 AC 84 ms
69,420 KB
testcase_03 AC 85 ms
69,516 KB
testcase_04 AC 83 ms
69,364 KB
testcase_05 AC 85 ms
69,432 KB
testcase_06 AC 84 ms
69,440 KB
testcase_07 AC 82 ms
69,328 KB
testcase_08 AC 84 ms
69,400 KB
testcase_09 AC 669 ms
69,432 KB
testcase_10 AC 669 ms
69,296 KB
testcase_11 AC 585 ms
69,324 KB
testcase_12 AC 600 ms
69,368 KB
testcase_13 AC 669 ms
69,432 KB
testcase_14 AC 664 ms
69,300 KB
testcase_15 AC 598 ms
69,536 KB
testcase_16 AC 665 ms
69,408 KB
testcase_17 AC 661 ms
69,528 KB
testcase_18 AC 657 ms
69,432 KB
testcase_19 AC 657 ms
69,500 KB
testcase_20 AC 652 ms
69,492 KB
testcase_21 AC 655 ms
69,292 KB
testcase_22 AC 172 ms
69,412 KB
testcase_23 AC 293 ms
69,500 KB
testcase_24 AC 258 ms
69,396 KB
testcase_25 AC 101 ms
69,424 KB
testcase_26 AC 100 ms
69,472 KB
testcase_27 AC 100 ms
69,416 KB
testcase_28 AC 99 ms
69,512 KB
testcase_29 AC 192 ms
69,436 KB
testcase_30 AC 141 ms
69,432 KB
testcase_31 AC 617 ms
69,436 KB
testcase_32 AC 613 ms
69,392 KB
testcase_33 AC 610 ms
69,472 KB
testcase_34 AC 638 ms
69,544 KB
testcase_35 AC 617 ms
69,488 KB
testcase_36 AC 614 ms
69,424 KB
testcase_37 AC 634 ms
69,568 KB
testcase_38 AC 608 ms
69,368 KB
testcase_39 AC 610 ms
69,500 KB
testcase_40 AC 339 ms
69,380 KB
testcase_41 AC 350 ms
69,328 KB
testcase_42 AC 259 ms
69,476 KB
testcase_43 AC 100 ms
69,424 KB
testcase_44 AC 100 ms
69,296 KB
testcase_45 AC 99 ms
69,328 KB
testcase_46 AC 101 ms
69,436 KB
testcase_47 AC 192 ms
69,440 KB
testcase_48 AC 370 ms
69,396 KB
testcase_49 AC 344 ms
69,480 KB
testcase_50 AC 363 ms
69,432 KB
testcase_51 AC 335 ms
69,496 KB
testcase_52 AC 358 ms
69,324 KB
testcase_53 AC 465 ms
69,392 KB
testcase_54 AC 451 ms
69,444 KB
testcase_55 AC 385 ms
69,372 KB
testcase_56 AC 460 ms
69,444 KB
testcase_57 AC 493 ms
69,332 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki_550

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 range(-10**6,10**6):
 if f(i)==0:
  res.append(i)
  B = a+i
  C = a*i+i*i+b
  x1=(-B+(B*B-4*C)**0.5)/2
  x2=(-B-(B*B-4*C)**0.5)/2
  res.append(x1)
  res.append(x2)
  break
res.sort()
for i in xrange(3):
 print "%.0f" % res[i],
print
0