Lukasfilm
CodeChefOpen on judge ↗
Lukas has decided to sell his movie production company, "Lukasfilm". N people have offered to buy the company. Instead of selling to the highest bidder, Lukas decides to sell his company to the Kth lowest bidder. How much money will Lukas get? Input The first line of the input contains 2 space-separated integers, N and K. The next line contains N space separated integers A1, A2, ..., AN, denotin
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