Submission #51031


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <bits/stdc++.h>
using namespace std;
signed main(){
int n;
int m=0;
cin>>n;
while(n!=0){
if(n%2 == 1){
m++;
}
n=n/2;
}
cout<<m<<'\n';
return(0);
}

ステータス

項目 データ
問題 1123 - こんなの一瞬だろ
ユーザー名 ei1929
投稿日時 2019-07-03 17:05:36
言語 C++
状態 Accepted
得点 1
ソースコード長 215 Byte
最大実行時間 28 ms
最大メモリ使用量 648 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample1 AC 28 ms 476 KB
1
input-sample2 AC 22 ms 448 KB
1
input01 AC 20 ms 424 KB
1
input02 AC 20 ms 524 KB
1
input03 AC 19 ms 492 KB
1
input04 AC 21 ms 468 KB
1
input05 AC 16 ms 436 KB
1
input06 AC 21 ms 408 KB
1
input07 AC 19 ms 636 KB
1
input08 AC 20 ms 476 KB
1
input09 AC 22 ms 576 KB
1
input10 AC 22 ms 548 KB
1
input11 AC 24 ms 648 KB
1
input12 AC 18 ms 496 KB
1
input13 AC 25 ms 468 KB
1
input14 AC 20 ms 444 KB
1
input15 AC 17 ms 544 KB
1