結果
問題 |
No.2203 POWER!!!!!
|
ユーザー |
|
提出日時 | 2023-02-04 22:54:55 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 82 ms / 2,000 ms |
コード長 | 273 bytes |
コンパイル時間 | 146 ms |
コンパイル使用メモリ | 82,428 KB |
実行使用メモリ | 101,992 KB |
最終ジャッジ日時 | 2024-07-03 18:51:00 |
合計ジャッジ時間 | 2,100 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
from collections import defaultdict n = int(input()) l = list(map(int,input().split())) a = defaultdict(int) for element in l: a[element] = a.get(element, 0) + 1 z = 0 for i in range(1, 9): for j in range(1, 9): z += a[i] * a[j] * (i ** j) print(z)