結果
| 問題 | No.2203 POWER!!!!! |
| コンテスト | |
| ユーザー |
FromBooska
|
| 提出日時 | 2023-03-05 17:05:07 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 110 ms / 2,000 ms |
| + 86µs | |
| コード長 | 335 bytes |
| 記録 | |
| コンパイル時間 | 243 ms |
| コンパイル使用メモリ | 96,368 KB |
| 実行使用メモリ | 111,672 KB |
| 最終ジャッジ日時 | 2026-08-29 22:51:22 |
| 合計ジャッジ時間 | 4,083 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 18 |
ソースコード
# Ai<8なので全組合せは少ない
# Nは大きいので同じ数が何度も出てくるのでCounter
N = int(input())
A = list(map(int, input().split()))
from collections import Counter
counted = Counter(A)
ans = 0
for num1 in counted:
for num2 in counted:
ans += (num1**num2)*counted[num1]*counted[num2]
print(ans)
FromBooska