結果

問題 No.2074 Product is Square ?
ユーザー 👑 H20H20
提出日時 2022-09-16 23:12:41
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 106 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 272 ms
コンパイル使用メモリ 87,252 KB
実行使用メモリ 77,168 KB
最終ジャッジ日時 2023-08-23 16:34:46
合計ジャッジ時間 4,447 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,524 KB
testcase_01 AC 78 ms
76,424 KB
testcase_02 AC 78 ms
76,296 KB
testcase_03 AC 78 ms
76,396 KB
testcase_04 AC 78 ms
76,296 KB
testcase_05 AC 77 ms
76,440 KB
testcase_06 AC 79 ms
76,392 KB
testcase_07 AC 77 ms
76,228 KB
testcase_08 AC 78 ms
76,460 KB
testcase_09 AC 77 ms
76,540 KB
testcase_10 AC 78 ms
76,252 KB
testcase_11 AC 77 ms
76,372 KB
testcase_12 AC 76 ms
76,396 KB
testcase_13 AC 78 ms
76,392 KB
testcase_14 AC 78 ms
76,208 KB
testcase_15 AC 77 ms
76,620 KB
testcase_16 AC 77 ms
76,524 KB
testcase_17 AC 76 ms
76,292 KB
testcase_18 AC 77 ms
76,532 KB
testcase_19 AC 78 ms
76,400 KB
testcase_20 AC 79 ms
76,156 KB
testcase_21 AC 79 ms
76,136 KB
testcase_22 AC 76 ms
76,488 KB
testcase_23 AC 77 ms
76,408 KB
testcase_24 AC 78 ms
76,224 KB
testcase_25 AC 79 ms
76,296 KB
testcase_26 AC 79 ms
76,460 KB
testcase_27 AC 78 ms
76,372 KB
testcase_28 AC 78 ms
76,420 KB
testcase_29 AC 78 ms
76,568 KB
testcase_30 AC 79 ms
76,528 KB
testcase_31 AC 75 ms
71,456 KB
testcase_32 AC 71 ms
71,152 KB
testcase_33 AC 106 ms
77,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
T = int(input())
for _ in range(T):
    N = int(input())
    A = list(map(int, input().split())) 
    v = 1
    for a in A:
        v = v*a
    if v == math.isqrt(v)**2:
        print('Yes')
    else:
        print('No')
0