結果
問題 |
No.2241 Reach 1
|
ユーザー |
|
提出日時 | 2023-03-10 23:21:47 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 490 bytes |
コンパイル時間 | 1,773 ms |
コンパイル使用メモリ | 189,608 KB |
最終ジャッジ日時 | 2025-02-11 09:18:26 |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
// 提出時にassertはオフ #ifndef DEBUG #ifndef NDEBUG #define NDEBUG #endif #endif #include <bits/stdc++.h> using namespace std; using ll = long long; #define ALL(x) (x).begin(), (x).end() template <class T> using vec = vector<T>; int N; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); cin >> N; if((N & (- N)) == N){ cout << 1 << "\n"; } else if(N % 2 == 0) { cout << 3 << "\n"; } else { cout << 2 << "\n"; } }