結果

問題 No.2203 POWER!!!!!
ユーザー titiatitia
提出日時 2023-02-03 23:20:43
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 64 ms / 2,000 ms
コード長 211 bytes
コンパイル時間 961 ms
コンパイル使用メモリ 10,420 KB
実行使用メモリ 12,396 KB
最終ジャッジ日時 2023-09-15 19:37:27
合計ジャッジ時間 2,288 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 18 ms
8,412 KB
testcase_01 AC 18 ms
8,420 KB
testcase_02 AC 17 ms
8,528 KB
testcase_03 AC 18 ms
8,408 KB
testcase_04 AC 18 ms
8,440 KB
testcase_05 AC 18 ms
8,480 KB
testcase_06 AC 18 ms
8,532 KB
testcase_07 AC 18 ms
8,436 KB
testcase_08 AC 23 ms
9,148 KB
testcase_09 AC 32 ms
9,604 KB
testcase_10 AC 43 ms
10,524 KB
testcase_11 AC 55 ms
11,340 KB
testcase_12 AC 23 ms
9,012 KB
testcase_13 AC 63 ms
12,296 KB
testcase_14 AC 63 ms
12,296 KB
testcase_15 AC 63 ms
12,304 KB
testcase_16 AC 64 ms
12,396 KB
testcase_17 AC 63 ms
12,220 KB
testcase_18 AC 18 ms
8,548 KB
testcase_19 AC 18 ms
8,424 KB
testcase_20 AC 18 ms
8,484 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import Counter

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


C=Counter(A)

ANS=0

for c in C:
    for d in C:
        ANS+=(c**d)*C[c]*C[d]

print(ANS)
0