結果

問題 No.2203 POWER!!!!!
ユーザー nikoro_is_wolfnikoro_is_wolf
提出日時 2023-02-03 21:52:12
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 154 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 87,240 KB
実行使用メモリ 103,676 KB
最終ジャッジ日時 2023-09-15 17:35:58
合計ジャッジ時間 3,849 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,216 KB
testcase_01 AC 75 ms
71,316 KB
testcase_02 AC 69 ms
71,436 KB
testcase_03 AC 75 ms
71,300 KB
testcase_04 AC 67 ms
71,420 KB
testcase_05 AC 74 ms
71,316 KB
testcase_06 AC 68 ms
71,272 KB
testcase_07 AC 75 ms
71,080 KB
testcase_08 AC 84 ms
77,076 KB
testcase_09 AC 98 ms
83,588 KB
testcase_10 AC 121 ms
89,976 KB
testcase_11 AC 150 ms
100,072 KB
testcase_12 AC 81 ms
77,084 KB
testcase_13 AC 131 ms
103,532 KB
testcase_14 AC 131 ms
103,676 KB
testcase_15 AC 129 ms
103,632 KB
testcase_16 AC 131 ms
103,512 KB
testcase_17 AC 131 ms
103,564 KB
testcase_18 AC 68 ms
71,324 KB
testcase_19 AC 68 ms
70,928 KB
testcase_20 AC 68 ms
71,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
ans=0
for i in range(1,9):
    for j in range(1,9):
        ans+=(A.count(i)*A.count(j)*(i**j))
print(ans)
0