結果
| 問題 |
No.2939 Sigma Popcount Problem
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-14 19:54:02 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 147 bytes |
| コンパイル時間 | 529 ms |
| コンパイル使用メモリ | 82,384 KB |
| 実行使用メモリ | 142,520 KB |
| 最終ジャッジ日時 | 2024-11-14 19:54:45 |
| 合計ジャッジ時間 | 42,181 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 5 TLE * 13 |
ソースコード
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)))