結果

問題 No.2508 Discriminant
ユーザー 👑 KA37RIKA37RI
提出日時 2023-07-10 19:17:05
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 311 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 11,992 KB
実行使用メモリ 11,152 KB
最終ジャッジ日時 2023-10-16 21:47:28
合計ジャッジ時間 2,877 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
10,096 KB
testcase_01 WA -
testcase_02 AC 30 ms
10,096 KB
testcase_03 AC 920 ms
11,152 KB
testcase_04 RE -
testcase_05 WA -
testcase_06 AC 30 ms
10,096 KB
testcase_07 WA -
testcase_08 RE -
testcase_09 RE -
testcase_10 AC 30 ms
10,096 KB
testcase_11 WA -
testcase_12 WA -
testcase_13 AC 30 ms
10,096 KB
testcase_14 AC 29 ms
10,096 KB
testcase_15 RE -
testcase_16 WA -
testcase_17 RE -
testcase_18 AC 30 ms
10,096 KB
testcase_19 AC 30 ms
10,096 KB
testcase_20 WA -
testcase_21 RE -
testcase_22 RE -
testcase_23 RE -
testcase_24 AC 29 ms
10,096 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def toint(s):
	res = 0
	d = 4
	for i in reversed(range((len(s) + d - 1) // d)):
		block = s[-d*(i+1):-d*(i)]
		if i == 0: block = s[-d*(i+1):]
		res *= 10 ** d
		res += int(block)
	return res

a, p, q = [toint(x) for x in input().split()]
b0 = p + q
c0 = p * q
ok = b0 ** 2 > a * c0
print("Yes" if ok else "No")
0