1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

はじめに

前回

#32

問題

考えたこと
本番で爆死した問題です。普通に計算すると精度がでなくてWAなのでdecimalを使って精度を上げるか、式変形して解くかの二択です。decimal使っても楽しくないので、式変形で解きます。といっても簡単な変形ですが。

スクリーンショット 2020-04-11 0.25.11.png

上を実装すると、

a, b, c = map(int,input().split())

f = c - a - b
if f > 0 and f ** 2 > 4 * a * b:
    print('Yes')
else:
    print('No')

まとめ

簡単な数学の問題でした。ではまた、おやすみなさい

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?