The queries problem
CodeChefOpen on judge ↗
The problem statement is simple, you are given n numbers (ai where 0 ≤ i Input . First line contains a single integer N - denoting the total number of numbers. Second line contains N space-separated integers. Third line contains a single integer Q - denoting the number of queries. Q lines follow. For every query of type 0, the query is of the form - 0 X Y - where 0 represents the query type
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