結果
問題 | No.2074 Product is Square ? |
ユーザー |
|
提出日時 | 2022-09-17 03:15:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 84 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 352 ms |
コンパイル使用メモリ | 81,956 KB |
実行使用メモリ | 72,192 KB |
最終ジャッジ日時 | 2024-12-22 00:07:05 |
合計ジャッジ時間 | 3,353 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 33 |
ソースコード
from math import isqrtt = int(input())for _ in range(t):n = int(input())a = list(map(int, input().split()))p = 1for v in a:p *= vrt = isqrt(p)print("Yes" if rt**2 == p else "No")