結果
| 問題 |
No.2241 Reach 1
|
| ユーザー |
noya2
|
| 提出日時 | 2023-03-06 18:09:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 203 bytes |
| コンパイル時間 | 1,896 ms |
| コンパイル使用メモリ | 192,616 KB |
| 最終ジャッジ日時 | 2025-02-11 05:52:24 |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
int main(){
int n; cin >> n;
int c = 0;
while (n % 2 == 0){
n /= 2;
c++;
}
cout << (n == 1 ? 1 : c > 0 ? 3 : 2) << endl;
}
noya2