Official algorithmic problem description and constraints.
Alice is going for a drive. During her drive, she reached a maximum speed of S km/hr.
As per the rules of the government, the speed of the vehicle must not exceed 40
40 km/hr, otherwise the person will be fined.
You need to tell whether Alice will be fined or not.
Print YES if Alice will be fined , otherwise print NO.
You may print each character of the string in uppercase or lowercase (for example, the strings YES, yEs, yes, and yeS will all be treated as identical).
Detailed video explanations, mathematical intuition, and clean C++ implementation code.