結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,160 KB
testcase_01 AC 86 ms
76,440 KB
testcase_02 AC 83 ms
76,420 KB
testcase_03 AC 83 ms
76,480 KB
testcase_04 AC 84 ms
76,400 KB
testcase_05 AC 83 ms
76,280 KB
testcase_06 AC 84 ms
76,396 KB
testcase_07 AC 84 ms
76,544 KB
testcase_08 AC 84 ms
76,588 KB
testcase_09 AC 83 ms
76,500 KB
testcase_10 AC 83 ms
76,304 KB
testcase_11 AC 82 ms
76,284 KB
testcase_12 AC 83 ms
76,504 KB
testcase_13 AC 84 ms
76,216 KB
testcase_14 AC 84 ms
76,288 KB
testcase_15 AC 84 ms
76,540 KB
testcase_16 AC 84 ms
76,280 KB
testcase_17 AC 83 ms
76,308 KB
testcase_18 AC 83 ms
76,352 KB
testcase_19 AC 83 ms
76,484 KB
testcase_20 AC 84 ms
76,172 KB
testcase_21 AC 84 ms
76,524 KB
testcase_22 AC 84 ms
76,164 KB
testcase_23 AC 82 ms
76,608 KB
testcase_24 AC 82 ms
76,220 KB
testcase_25 AC 83 ms
76,412 KB
testcase_26 AC 85 ms
76,608 KB
testcase_27 AC 84 ms
76,416 KB
testcase_28 AC 83 ms
76,404 KB
testcase_29 AC 86 ms
76,244 KB
testcase_30 AC 84 ms
76,484 KB
testcase_31 AC 79 ms
71,480 KB
testcase_32 AC 75 ms
71,432 KB
testcase_33 AC 115 ms
77,296 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
for v in [1]*int(input()):
    input()
    for a in list(map(int,input().split())):
        v*=a
    print('YNeos'[v!=math.isqrt(v)**2::2])
0