Horror Movie
CodeChefOpen on judge ↗
Sidharth, being a big fan of horror movies planned to watch horror movie along with his friend Sahu. Each movie has an associated horror yield. Sidharth has a list of $N$ movies and Sahu has another list of $N$ movies. Sidharth and Sahu agree to choose some positive integer $i \leq N $ and then Sidharth watches the $i-th$ movie from his list and Sahu watches $i-th$ movie from his own list. Sidhart
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