結果

問題 No.2555 Intriguing Triangle
ユーザー hiro1729hiro1729
提出日時 2023-11-30 17:22:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 79 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 81,572 KB
実行使用メモリ 75,232 KB
最終ジャッジ日時 2023-12-01 13:37:39
合計ジャッジ時間 2,615 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,332 KB
testcase_01 AC 44 ms
53,332 KB
testcase_02 AC 39 ms
53,332 KB
testcase_03 AC 39 ms
53,332 KB
testcase_04 AC 41 ms
53,332 KB
testcase_05 AC 43 ms
53,332 KB
testcase_06 AC 38 ms
53,332 KB
testcase_07 AC 38 ms
53,332 KB
testcase_08 AC 38 ms
53,332 KB
testcase_09 AC 38 ms
53,332 KB
testcase_10 AC 52 ms
63,912 KB
testcase_11 AC 45 ms
59,588 KB
testcase_12 AC 54 ms
65,996 KB
testcase_13 AC 37 ms
53,332 KB
testcase_14 AC 44 ms
61,712 KB
testcase_15 AC 50 ms
59,376 KB
testcase_16 AC 47 ms
59,644 KB
testcase_17 AC 37 ms
53,332 KB
testcase_18 AC 37 ms
53,332 KB
testcase_19 AC 37 ms
53,332 KB
testcase_20 AC 38 ms
53,332 KB
testcase_21 AC 79 ms
75,232 KB
testcase_22 AC 43 ms
53,332 KB
testcase_23 AC 37 ms
53,332 KB
testcase_24 AC 37 ms
53,332 KB
testcase_25 AC 37 ms
53,332 KB
testcase_26 AC 41 ms
59,388 KB
testcase_27 AC 51 ms
59,388 KB
testcase_28 AC 39 ms
57,300 KB
testcase_29 AC 52 ms
59,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a = int(input())
b = int(input())
c = int(input())
for x in range(abs(b - c) + 1, b + c):
	for d in range(1, x):
		e = x - a - d
		if e >= 1:
			if (2 * b * b * x - d * (b * b + x * x - c * c)) ** 2 * ((c * c + e * e) * x - e * (c * c + x * x - b * b)) * c * c == (2 * c * c * x - e * (c * c + x * x - b * b)) ** 2 * ((b * b + d * d) * x - d * (b * b + x * x - c * c)) * b * b:
				exit(print("Yes"))
print("No")
0