Submission #71399


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include<iostream>
using namespace std;
int main(){
int n,z = 0;
cin >> n;
while(n > 0){
if(n % 2){
z++;
}
else{
}
n = n/2;
}
cout << z <<'\n';
return(0);
}

ステータス

項目 データ
問題 1123 - こんなの一瞬だろ
ユーザー名 a2209
投稿日時 2022-07-21 17:32:46
言語 C++
状態 Accepted
得点 1
ソースコード長 249 Byte
最大実行時間 25 ms
最大メモリ使用量 720 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample1 AC 19 ms 476 KB
1
input-sample2 AC 21 ms 444 KB
1
input01 AC 20 ms 544 KB
1
input02 AC 20 ms 520 KB
1
input03 AC 23 ms 620 KB
1
input04 AC 16 ms 460 KB
1
input05 AC 18 ms 436 KB
1
input06 AC 20 ms 536 KB
1
input07 AC 22 ms 376 KB
1
input08 AC 21 ms 608 KB
1
input09 AC 23 ms 584 KB
1
input10 AC 18 ms 548 KB
1
input11 AC 18 ms 516 KB
1
input12 AC 23 ms 620 KB
1
input13 AC 22 ms 720 KB
1
input14 AC 25 ms 696 KB
1
input15 AC 21 ms 672 KB
1