結果
| 問題 |
No.2241 Reach 1
|
| ユーザー |
timi
|
| 提出日時 | 2023-03-10 22:12:38 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 501 bytes |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-09-18 04:24:15 |
| 合計ジャッジ時間 | 2,410 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 35 |
ソースコード
#N,M=map(int, input().split())
#S=input()
N=int(input())
if N==1:
print(0)
exit()
A=[]
def make_divisors(n):
lower_divisors , upper_divisors = [], []
i = 1
while i*i <= n:
if n % i == 0:
lower_divisors.append(i)
if i != n // i:
upper_divisors.append(n//i)
i += 1
return lower_divisors + upper_divisors[::-1]
for i in range(40):
A.append(pow(2,i+1))
if N in A:
print(1)
else:
if N%2==1:
print(2)
else:
print(3)
timi