結果
| 問題 |
No.2241 Reach 1
|
| ユーザー |
planes
|
| 提出日時 | 2023-03-11 00:26:29 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 417 bytes |
| コンパイル時間 | 1,616 ms |
| コンパイル使用メモリ | 165,328 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-18 05:49:30 |
| 合計ジャッジ時間 | 2,649 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll =long long;
#define all(v) v.begin(),v.end()
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
int main() {
ll N;cin>>N;
for(ll i=0;i<=40;i++) {
if((1LL<<i)==N) {
cout<<1<<endl;
return 0;
}
}
if(N%2!=0) {
cout<<2<<endl;
}
else cout<<3<<endl;
}
planes