結果
| 問題 | No.2555 Intriguing Triangle |
| コンテスト | |
| ユーザー |
navel_tos
|
| 提出日時 | 2023-12-01 02:52:00 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 322 bytes |
| 記録 | |
| コンパイル時間 | 197 ms |
| コンパイル使用メモリ | 85,632 KB |
| 実行使用メモリ | 59,648 KB |
| 最終ジャッジ日時 | 2026-04-13 17:58:33 |
| 合計ジャッジ時間 | 5,990 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 12 WA * 16 |
ソースコード
#ガチの天才数学パズルじゃん、なんだこれ
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):
if x>0 and y>0 and b+z < c and c+z < b: print('Yes'); exit()
print('No')
navel_tos