結果
| 問題 |
No.2203 POWER!!!!!
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-02-03 23:25:00 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 76 ms / 2,000 ms |
| コード長 | 211 bytes |
| コンパイル時間 | 272 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 86,144 KB |
| 最終ジャッジ日時 | 2024-07-02 21:30:13 |
| 合計ジャッジ時間 | 2,109 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
from collections import Counter
n = int(input())
C = Counter(map(int,input().split()))
ans = 0
for key,value in C.items():
for nkey,nvalue in C.items():
ans += pow(key,nkey)*value*nvalue
print(ans)