結果
問題 | No.2939 Sigma Popcount Problem |
ユーザー |
![]() |
提出日時 | 2024-10-18 21:26:56 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 157 bytes |
コンパイル時間 | 403 ms |
コンパイル使用メモリ | 82,304 KB |
実行使用メモリ | 76,620 KB |
最終ジャッジ日時 | 2024-10-18 21:56:07 |
合計ジャッジ時間 | 5,039 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 WA * 12 |
ソースコード
T=int(input()) for i in range(T): N=int(input()) N+=1 ans=0 a,b=1,2 for i in range(30): ans+=(N//b)*a+max(0,N%b-a) a*=2;b*=2 print(ans)