結果
| 問題 |
No.2241 Reach 1
|
| コンテスト | |
| ユーザー |
monnu
|
| 提出日時 | 2023-03-10 21:56:24 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 350 bytes |
| コンパイル時間 | 1,766 ms |
| コンパイル使用メモリ | 166,052 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-18 04:11:40 |
| 合計ジャッジ時間 | 2,639 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main()
{
int N;
cin >> N;
int x = 1;
while (x <= N)
{
x <<= 1;
if (x == N)
{
cout << 1 << endl;
return 0;
}
}
if (N % 2 == 0)
{
cout << 3 << endl;
}
else
{
cout << 2 << endl;
}
}
monnu