結果
問題 |
No.2203 POWER!!!!!
|
ユーザー |
|
提出日時 | 2023-03-13 10:56:45 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 81 ms / 2,000 ms |
コード長 | 177 bytes |
コンパイル時間 | 184 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 14,588 KB |
最終ジャッジ日時 | 2024-09-18 07:23:36 |
合計ジャッジ時間 | 2,256 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 18 |
ソースコード
from collections import Counter N=int(input()) A=list(map(int, input().split())) C=Counter(A) res=0 for a,n in C.items(): for b,m in C.items(): res+=n*m*pow(a, b) print(res)