結果

問題 No.2241 Reach 1
ユーザー roaris
提出日時 2023-03-10 23:37:05
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 46 ms / 2,000 ms
コード長 219 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 82,532 KB
実行使用メモリ 53,760 KB
最終ジャッジ日時 2024-09-18 05:43:16
合計ジャッジ時間 2,831 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline
from collections import *

N = int(input())

for i in range(35):
    if N==pow(2, i):
        print(1)
        break
else:
    if N%2==0:
        print(3)
    else:
        print(2)
0