Submission #50896


ソースコード

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

ステータス

項目 データ
問題 1123 - こんなの一瞬だろ
ユーザー名 ei1923
投稿日時 2019-06-24 17:42:20
言語 C++
状態 Accepted
得点 1
ソースコード長 201 Byte
最大実行時間 29 ms
最大メモリ使用量 604 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample1 AC 20 ms 604 KB
1
input-sample2 AC 29 ms 444 KB
1
input01 AC 16 ms 544 KB
1
input02 AC 20 ms 388 KB
1
input03 AC 24 ms 492 KB
1
input04 AC 18 ms 588 KB
1
input05 AC 16 ms 560 KB
1
input06 AC 17 ms 536 KB
1
input07 AC 21 ms 384 KB
1
input08 AC 20 ms 488 KB
1
input09 AC 17 ms 460 KB
1
input10 AC 24 ms 560 KB
1
input11 AC 20 ms 408 KB
1
input12 AC 22 ms 512 KB
1
input13 AC 19 ms 484 KB
1
input14 AC 22 ms 452 KB
1
input15 AC 23 ms 552 KB
1