Big Queries
WARNING: This problem has large input / output files. Use of faster I/O methods is recommended. You are given an array A consisting of N integers. You have to answer M queries on it. Each query belongs to one of the following three types: - 1 L R X : multiply each number in the range AL, AL + 1, ..., AR by X. - 2 L R Y : Replace the elements AL, AL + 1, ..., AR by Y, 2 * Y, ... (R - L + 1) * Y
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