結果
| 問題 |
No.2555 Intriguing Triangle
|
| コンテスト | |
| ユーザー |
navel_tos
|
| 提出日時 | 2023-12-01 02:33:09 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 286 bytes |
| コンパイル時間 | 481 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 58,880 KB |
| 最終ジャッジ日時 | 2024-09-26 15:30:28 |
| 合計ジャッジ時間 | 2,633 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 WA * 5 |
ソースコード
#ガチの天才数学パズルじゃん、なんだこれ
a,b,c = [int(input()) for _ in range(3)]
for z in range(2+a,b+c):
for x in range(1,z+1):
y = z-a-x
if y < 1: continue
if b**2 * (y * (a + y)) == c**2 * (x * (a + x)):
print('Yes'); exit()
print('No')
navel_tos