Gochi
CodeChefOpen on judge ↗
Batya is new to the Guruji's Ashram. She is told to add and sell Gochi from the storage. Each Gochi pill has some cost. The power of each pill is the number of divisors of cost of that pill. Since Batya is new, she asks for your help. You are given $Q$ queries. Each query is one of the following: - $1 P$ - $2 K$ Each query starts with $1$ or $2$ denoting the type of query. Query 1: A pill of c
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start