結果
| 問題 |
No.2939 Sigma Popcount Problem
|
| コンテスト | |
| ユーザー |
AwashAmityOak
|
| 提出日時 | 2024-10-18 21:44:16 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 264 bytes |
| コンパイル時間 | 408 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 17,444 KB |
| 最終ジャッジ日時 | 2024-10-18 22:35:35 |
| 合計ジャッジ時間 | 4,341 ms |
|
ジャッジサーバーID (参考情報) |
judge / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 TLE * 1 -- * 12 |
ソースコード
T = int(input()) for t in range(T): N = int(input()) N += 1 ans = 0 for i in range(1, 60): ans += N // (1 << i) * (1 << (i-1)) ans += max(0, N % (1 << i) - (1 << (i-1))) i += 1 print(ans) """ 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 """
AwashAmityOak