結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 77 ms
71,428 KB
testcase_01 AC 80 ms
76,616 KB
testcase_02 AC 80 ms
76,448 KB
testcase_03 AC 80 ms
76,412 KB
testcase_04 AC 79 ms
76,616 KB
testcase_05 AC 82 ms
76,300 KB
testcase_06 AC 80 ms
76,384 KB
testcase_07 AC 81 ms
76,488 KB
testcase_08 AC 81 ms
76,236 KB
testcase_09 AC 79 ms
76,308 KB
testcase_10 AC 82 ms
76,372 KB
testcase_11 AC 82 ms
76,348 KB
testcase_12 AC 79 ms
76,476 KB
testcase_13 AC 83 ms
76,232 KB
testcase_14 AC 82 ms
76,584 KB
testcase_15 AC 82 ms
76,232 KB
testcase_16 AC 81 ms
76,312 KB
testcase_17 AC 81 ms
76,656 KB
testcase_18 AC 82 ms
76,344 KB
testcase_19 AC 81 ms
76,568 KB
testcase_20 AC 78 ms
76,332 KB
testcase_21 AC 81 ms
76,244 KB
testcase_22 AC 80 ms
76,300 KB
testcase_23 AC 81 ms
76,640 KB
testcase_24 AC 80 ms
76,472 KB
testcase_25 AC 81 ms
76,340 KB
testcase_26 AC 81 ms
76,248 KB
testcase_27 AC 83 ms
76,232 KB
testcase_28 AC 80 ms
76,348 KB
testcase_29 AC 81 ms
76,252 KB
testcase_30 AC 82 ms
76,472 KB
testcase_31 AC 76 ms
71,664 KB
testcase_32 AC 74 ms
71,500 KB
testcase_33 AC 120 ms
77,176 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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