結果
| 問題 | No.3084 Identify f(x) | 
| コンテスト | |
| ユーザー |  gew1fw | 
| 提出日時 | 2025-06-12 18:10:18 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 216 bytes | 
| コンパイル時間 | 207 ms | 
| コンパイル使用メモリ | 81,968 KB | 
| 実行使用メモリ | 85,996 KB | 
| 最終ジャッジ日時 | 2025-06-12 18:12:27 | 
| 合計ジャッジ時間 | 6,624 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| 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)
            
            
            
        