Scam 2021
CodeChefOpen on judge ↗
Problem Statement: We all know the famous Harshad Mehta and his ways to scam people, We know that he is planning to scam the government again. He knows that if he crosses the Indian border, Indian government won’t be able to catch him. India’s border is defined by 4 lines x = 0, y = 0 and x = X, and y = Y. And he is at the (0, 0) (origin in a 2D plane). There are X * Y cities (blocks of
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