結果
| 問題 |
No.2241 Reach 1
|
| ユーザー |
|
| 提出日時 | 2023-03-28 11:22:16 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 410 bytes |
| コンパイル時間 | 684 ms |
| コンパイル使用メモリ | 81,180 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-09-20 02:11:11 |
| 合計ジャッジ時間 | 1,619 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
#include<cstdio>
#include<cstring>
#include<iostream>
#include<cmath>
#include<ctime>
#include<string>
#include<algorithm>
#include<vector>
#include<queue>
#include<stack>
#include<map>
using namespace std;
typedef long long LL;
const int MR=1e6+10;
int main(){
LL n;
cin>>n;
int ans=0;
while(n%2==0){
ans=1;
n/=2;
}
if(n>1) ans+=2;
cout<<ans<<endl;
return 0;
}