結果
| 問題 | No.642 Two Operations No.1 |
| コンテスト | |
| ユーザー |
Pulmn
|
| 提出日時 | 2018-01-27 22:27:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 151 bytes |
| 記録 | |
| コンパイル時間 | 561 ms |
| コンパイル使用メモリ | 54,704 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-31 00:09:51 |
| 合計ジャッジ時間 | 1,346 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 15 |
ソースコード
#include <iostream>
using namespace std;
int n;
int main(){
cin>>n;
n--;
int t=0;
while(n){
if(n%2==0) t++;
n/=2;
t++;
}
cout<<t<<endl;
}
Pulmn