Zip Files
CodeChefOpen on judge ↗
You are given $N$ files of initial size $A[i]$. You were reading about compression and got to know storing files in zip format is very efficient. After zipping the file, the size reduces to $B[i]$ (where $B[i] The total capacity of your hard disk is $M$. Since you are lazy to convert more files to zip format, you need to find the minimum number of files you need to compress so that all the $N$ fil
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