Editorial for Max's Anger Contest Series 1 P1 - Hunger Bar
Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
Subtask 1
Maintain a hunger bar set to and keep decrementing it and until either is or it is and output the state.
Time Complexity:
Subtask 2
Output .
Time Complexity:
Comments