結果
問題 | No.2241 Reach 1 |
ユーザー |
|
提出日時 | 2023-03-10 21:57:29 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 48 ms / 2,000 ms |
コード長 | 403 bytes |
コンパイル時間 | 362 ms |
コンパイル使用メモリ | 81,792 KB |
実行使用メモリ | 54,528 KB |
最終ジャッジ日時 | 2024-09-18 04:13:33 |
合計ジャッジ時間 | 2,914 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 35 |
ソースコード
import syssys.setrecursionlimit(5*10**5)input = sys.stdin.readlinefrom collections import defaultdict, deque, Counterfrom heapq import heappop, heappushfrom bisect import bisect_left, bisect_rightfrom math import gcdn = int(input())cnt = 0s = set()now = 2for i in range(35):s.add(now)now *= 2if n == 1:print(0)elif n in s:print(1)elif n % 2 == 0:print(3)else:print(2)