結果
問題 |
No.2939 Sigma Popcount Problem
|
ユーザー |
|
提出日時 | 2024-11-14 20:02:20 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 236 bytes |
コンパイル時間 | 300 ms |
コンパイル使用メモリ | 82,200 KB |
実行使用メモリ | 138,532 KB |
最終ジャッジ日時 | 2024-11-14 20:03:01 |
合計ジャッジ時間 | 40,929 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 5 TLE * 13 |
ソースコード
num = int(input()) # テストケースの数 for _ in range(num): a = int(input()) # 各テストケースのN result = 0 for i in range(1, a+1): result += bin(i).count('1') # popcountの計算 print(result)