結果
| 問題 | No.2939 Sigma Popcount Problem |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-14 19:54:02 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 147 bytes |
| 記録 | |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 87,040 KB |
| 最終ジャッジ日時 | 2026-05-10 04:32:47 |
| 合計ジャッジ時間 | 4,547 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 TLE * 1 -- * 12 |
ソースコード
from functools import reduce
num = int(input())
for _ in range(num):
print(reduce(lambda x,y:x+ bin(y)[2:].count("1"),range(1,int(input())+1)))