結果

問題 No.2203 POWER!!!!!
ユーザー 👑 H20H20
提出日時 2023-02-03 21:25:56
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 1,016 ms
コンパイル使用メモリ 87,280 KB
実行使用メモリ 105,380 KB
最終ジャッジ日時 2023-09-15 16:47:31
合計ジャッジ時間 4,285 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
71,732 KB
testcase_01 AC 91 ms
71,604 KB
testcase_02 AC 90 ms
71,636 KB
testcase_03 AC 91 ms
71,436 KB
testcase_04 AC 91 ms
71,484 KB
testcase_05 AC 92 ms
71,704 KB
testcase_06 AC 92 ms
71,564 KB
testcase_07 AC 92 ms
71,396 KB
testcase_08 AC 102 ms
78,716 KB
testcase_09 AC 107 ms
85,044 KB
testcase_10 AC 118 ms
91,288 KB
testcase_11 AC 132 ms
101,840 KB
testcase_12 AC 104 ms
78,736 KB
testcase_13 AC 135 ms
105,376 KB
testcase_14 AC 135 ms
105,084 KB
testcase_15 AC 137 ms
105,140 KB
testcase_16 AC 134 ms
105,380 KB
testcase_17 AC 131 ms
105,136 KB
testcase_18 AC 93 ms
71,472 KB
testcase_19 AC 94 ms
71,516 KB
testcase_20 AC 94 ms
71,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import collections
N = int(input())
A = list(map(int, input().split())) 
CA = collections.Counter(A)
ans = 0
for i in range(1,9):
    for j in range(1,9):
        ans+=CA[i]*CA[j]*i**j
print(ans)
0