Submission #71305


ソースコード

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

ステータス

項目 データ
問題 1123 - こんなの一瞬だろ
ユーザー名 r2213
投稿日時 2022-07-20 16:22:08
言語 C++17
状態 Accepted
得点 1
ソースコード長 213 Byte
最大実行時間 27 ms
最大メモリ使用量 604 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input-sample1 AC 17 ms 604 KB
1
input-sample2 AC 17 ms 448 KB
1
input01 AC 23 ms 420 KB
1
input02 AC 21 ms 388 KB
1
input03 AC 22 ms 484 KB
1
input04 AC 18 ms 460 KB
1
input05 AC 27 ms 436 KB
1
input06 AC 25 ms 536 KB
1
input07 AC 20 ms 508 KB
1
input08 AC 17 ms 480 KB
1
input09 AC 23 ms 456 KB
1
input10 AC 25 ms 432 KB
1
input11 AC 20 ms 532 KB
1
input12 AC 20 ms 508 KB
1
input13 AC 20 ms 480 KB
1
input14 AC 21 ms 452 KB
1
input15 AC 15 ms 556 KB
1