結果
| 問題 |
No.3084 Identify f(x)
|
| コンテスト | |
| ユーザー |
gew1fw
|
| 提出日時 | 2025-06-12 12:51:54 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 216 bytes |
| コンパイル時間 | 338 ms |
| コンパイル使用メモリ | 82,716 KB |
| 実行使用メモリ | 87,068 KB |
| 最終ジャッジ日時 | 2025-06-12 12:52:30 |
| 合計ジャッジ時間 | 6,780 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 6 |
ソースコード
n = int(input())
a = list(map(int, input().split()))
result = 0
for b in range(31):
cnt = 0
for num in a:
if (num >> b) & 1:
cnt += 1
result += cnt * (n - cnt) * (1 << b)
print(result)
gew1fw