結果
問題 | No.2074 Product is Square ? |
ユーザー |
![]() |
提出日時 | 2022-09-16 23:49:52 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 248 bytes |
コンパイル時間 | 468 ms |
コンパイル使用メモリ | 82,348 KB |
実行使用メモリ | 71,264 KB |
最終ジャッジ日時 | 2024-12-21 23:31:06 |
合計ジャッジ時間 | 3,329 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 2 WA * 1 RE * 30 |
ソースコード
import matht = int(input())for i in range(t):n = int(input())a = list(map(int, input().split()))mul = 1for e in a:mul = mul * eif math.sqrt(mul).is_integer():print("Yes")else:print("No")