The Cool Kidz Club
CodeChefOpen on judge ↗
Your only wish has been to be a part of the Cool Kidz Club of your school! But to be a cool kid, you need to pass the Cool Kidz Club assessment. In the assessment, you are given an array $A$ of $N$ integers, along with $Q$ queries. Assuming 1-based indexing, you are asked to process 2 types of queries: - $1$ $L$ $R$ : You are allowed to choose an arbitrary integer $c$ such that $c$ >= 0. You can
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