結果

問題 No.2203 POWER!!!!!
ユーザー tktk_snsntktk_snsn
提出日時 2023-03-02 04:00:34
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 73 ms / 2,000 ms
コード長 205 bytes
コンパイル時間 139 ms
コンパイル使用メモリ 11,764 KB
実行使用メモリ 13,212 KB
最終ジャッジ日時 2023-10-17 02:47:33
合計ジャッジ時間 3,016 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
10,032 KB
testcase_01 AC 27 ms
10,032 KB
testcase_02 AC 27 ms
10,032 KB
testcase_03 AC 26 ms
10,032 KB
testcase_04 AC 26 ms
10,032 KB
testcase_05 AC 26 ms
10,032 KB
testcase_06 AC 26 ms
10,032 KB
testcase_07 AC 27 ms
10,032 KB
testcase_08 AC 32 ms
10,464 KB
testcase_09 AC 41 ms
10,916 KB
testcase_10 AC 52 ms
12,020 KB
testcase_11 AC 71 ms
12,804 KB
testcase_12 AC 31 ms
10,464 KB
testcase_13 AC 73 ms
13,212 KB
testcase_14 AC 73 ms
13,212 KB
testcase_15 AC 73 ms
13,212 KB
testcase_16 AC 72 ms
13,212 KB
testcase_17 AC 73 ms
13,212 KB
testcase_18 AC 27 ms
10,032 KB
testcase_19 AC 27 ms
10,032 KB
testcase_20 AC 27 ms
10,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import Counter


N = int(input())
A = list(map(int, input().split()))
C = Counter(A)

ans = 0
for a, n in C.items():
    for b, m in C.items():
        ans += n * m * pow(a, b)
print(ans)
0