結果
| 問題 | No.2241 Reach 1 |
| コンテスト | |
| ユーザー |
noya2
|
| 提出日時 | 2023-03-06 18:09:53 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 203 bytes |
| 記録 | |
| コンパイル時間 | 1,244 ms |
| コンパイル使用メモリ | 208,672 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-29 20:29:12 |
| 合計ジャッジ時間 | 2,534 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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