A. Feed the cat time limit per test: 1 second memory limit per test: 256 megabytes input: standard input output: standard output After waking up at hh:mm, Andrew realised that he had forgotten to feed his only cat for yet another time (guess why ther…
After waking up at hh:mm, Andrew realised that he had forgotten to feed his only cat for yet another time (guess why there's only one cat). The cat's current hunger level is H points, moreover each minute without food increases his hunger by D points…