i wrote the following program to solve th problem on this link-https://www.hackerearth.com/problem/algorithm/good-times-vs-bad-times-3/?utm_source=header&utm_medium=search&utm_campaign=he-search
but when i ran it with sample input "23 58 59"and "23 46 22",the output should have been "0:2" and "1:408" respectively but i got "0:1" and "1:1716".Please help me guys i really stuck