結果

問題 No.2074 Product is Square ?
ユーザー 👑 H20H20
提出日時 2022-09-17 15:44:06
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 108 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 703 ms
コンパイル使用メモリ 86,844 KB
実行使用メモリ 77,700 KB
最終ジャッジ日時 2023-08-23 17:47:42
合計ジャッジ時間 4,965 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,212 KB
testcase_01 AC 81 ms
75,704 KB
testcase_02 AC 81 ms
76,200 KB
testcase_03 AC 98 ms
77,088 KB
testcase_04 AC 80 ms
75,952 KB
testcase_05 AC 81 ms
75,868 KB
testcase_06 AC 80 ms
75,972 KB
testcase_07 AC 82 ms
76,080 KB
testcase_08 AC 80 ms
75,944 KB
testcase_09 AC 81 ms
75,644 KB
testcase_10 AC 80 ms
75,872 KB
testcase_11 AC 80 ms
75,776 KB
testcase_12 AC 79 ms
75,948 KB
testcase_13 AC 80 ms
75,648 KB
testcase_14 AC 80 ms
75,992 KB
testcase_15 AC 79 ms
75,976 KB
testcase_16 AC 80 ms
76,224 KB
testcase_17 AC 81 ms
75,936 KB
testcase_18 AC 79 ms
75,948 KB
testcase_19 AC 78 ms
75,640 KB
testcase_20 AC 79 ms
76,036 KB
testcase_21 AC 80 ms
76,040 KB
testcase_22 AC 79 ms
75,732 KB
testcase_23 AC 78 ms
75,976 KB
testcase_24 AC 80 ms
75,896 KB
testcase_25 AC 81 ms
76,196 KB
testcase_26 AC 78 ms
75,948 KB
testcase_27 AC 79 ms
75,968 KB
testcase_28 AC 80 ms
75,924 KB
testcase_29 AC 82 ms
75,700 KB
testcase_30 AC 80 ms
75,948 KB
testcase_31 AC 74 ms
71,128 KB
testcase_32 AC 71 ms
71,004 KB
testcase_33 AC 108 ms
77,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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