結果
問題 |
No.3301 Make Right Triangle
|
ユーザー |
![]() |
提出日時 | 2025-10-05 14:32:17 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 307 bytes |
コンパイル時間 | 383 ms |
コンパイル使用メモリ | 82,780 KB |
実行使用メモリ | 77,408 KB |
最終ジャッジ日時 | 2025-10-05 14:32:28 |
合計ジャッジ時間 | 6,694 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 2 WA * 7 |
ソースコード
from math import isqrt for _ in range(int(input())): A = int(input()) if A == 2**(A.bit_length()-1): print(A, A//4*3, isqrt(A**2+(A//4*3)**2)) continue a2 = A**2 n = 0 while a2%2**(n+1) == 0: n += 1 d = a2//2**n print(A, 2**n*(d//2), 2**n*(d//2+1))