結果

問題 No.2241 Reach 1
ユーザー ace_amuro
提出日時 2023-03-28 11:21:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 412 bytes
コンパイル時間 652 ms
コンパイル使用メモリ 81,088 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-20 02:10:38
合計ジャッジ時間 1,638 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10 WA * 25
権限があれば一括ダウンロードができます

ソースコード

diff #

#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(ans>1) ans+=2;
    cout<<ans<<endl;
    return 0;
}
0