結果
| 問題 | 
                            No.2203 POWER!!!!!
                             | 
                    
| コンテスト | |
| ユーザー | 
                             titia
                         | 
                    
| 提出日時 | 2023-02-03 23:20:43 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 84 ms / 2,000 ms | 
| コード長 | 211 bytes | 
| コンパイル時間 | 125 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 14,684 KB | 
| 最終ジャッジ日時 | 2024-07-02 21:26:02 | 
| 合計ジャッジ時間 | 1,982 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 18 | 
ソースコード
import sys
input = sys.stdin.readline
from collections import Counter
N=int(input())
A=list(map(int,input().split()))
C=Counter(A)
ANS=0
for c in C:
    for d in C:
        ANS+=(c**d)*C[c]*C[d]
print(ANS)
            
            
            
        
            
titia