結果
問題 | No.2074 Product is Square ? |
ユーザー |
![]() |
提出日時 | 2022-09-16 23:12:41 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 77 ms / 2,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 352 ms |
コンパイル使用メモリ | 82,372 KB |
実行使用メモリ | 72,448 KB |
最終ジャッジ日時 | 2024-12-21 22:45:24 |
合計ジャッジ時間 | 3,022 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 33 |
ソースコード
import mathT = int(input())for _ in range(T):N = int(input())A = list(map(int, input().split()))v = 1for a in A:v = v*aif v == math.isqrt(v)**2:print('Yes')else:print('No')