Sachin & his Girlfriend
CodeChefOpen on judge ↗
Sachin came to third year of engineering. He researched something on numbers and soon started to love numbers less than 1007, more than his girlfriend. Every number he would encounter, he would divide the number with 1007 and store its remainder, if he has not come across that remainder previously. Soon his girlfriend found this out, so he asks you to help him. Input The first line contains an i
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