結果

問題 No.2203 POWER!!!!!
ユーザー ニックネームニックネーム
提出日時 2023-02-03 21:39:01
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 160 bytes
コンパイル時間 530 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 10,224 KB
最終ジャッジ日時 2023-09-15 17:17:36
合計ジャッジ時間 2,059 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,784 KB
testcase_01 AC 16 ms
7,824 KB
testcase_02 AC 16 ms
7,824 KB
testcase_03 AC 16 ms
7,804 KB
testcase_04 AC 15 ms
7,772 KB
testcase_05 AC 15 ms
7,948 KB
testcase_06 AC 16 ms
7,840 KB
testcase_07 AC 15 ms
7,872 KB
testcase_08 AC 22 ms
8,264 KB
testcase_09 AC 33 ms
8,816 KB
testcase_10 AC 46 ms
9,428 KB
testcase_11 AC 60 ms
10,224 KB
testcase_12 AC 22 ms
8,264 KB
testcase_13 AC 70 ms
9,960 KB
testcase_14 AC 69 ms
9,968 KB
testcase_15 AC 69 ms
10,136 KB
testcase_16 AC 69 ms
10,116 KB
testcase_17 AC 70 ms
9,964 KB
testcase_18 AC 15 ms
7,816 KB
testcase_19 AC 15 ms
7,732 KB
testcase_20 AC 15 ms
7,836 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input()); c = [0]*9; ans = 0
for v in map(int,input().split()): c[v] += 1
for i in range(1,9):
    for j in range(1,9): ans += c[i]*c[j]*i**j
print(ans)
0