結果
問題 | No.2074 Product is Square ? |
ユーザー |
|
提出日時 | 2022-09-16 22:47:45 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 205 bytes |
コンパイル時間 | 309 ms |
コンパイル使用メモリ | 82,240 KB |
実行使用メモリ | 70,984 KB |
最終ジャッジ日時 | 2024-12-21 22:06:59 |
合計ジャッジ時間 | 3,514 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 3 RE * 30 |
ソースコード
import matht = int(input())for _ in range(t):n = int(input())a = list(map(int, input().split()))p = math.prod(a)rt = round(math.sqrt(p))print("Yes" if rt * rt == p else "No")