結果
| 問題 |
No.378 名声値を稼ごう
|
| コンテスト | |
| ユーザー |
subsn
|
| 提出日時 | 2023-06-15 17:21:09 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 187 bytes |
| コンパイル時間 | 136 ms |
| コンパイル使用メモリ | 28,544 KB |
| 実行使用メモリ | 10,624 KB |
| 最終ジャッジ日時 | 2024-06-23 16:29:20 |
| 合計ジャッジ時間 | 3,568 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 1 |
| other | AC * 1 TLE * 1 -- * 3 |
ソースコード
#include <stdio.h>
#include <stdint.h>
int main()
{
int c = 0;
uint64_t n;
scanf("%llu",&n);
for (;;) {
if (n % 2 == 1) c++;
n /= 2;
if (n == 1) break;
}
printf("%d\n",c+1);
}
subsn