As per the specifications for greedy, my final line of code just prints an integer followed by \n. printf("%d \n", answer) but I get the same output as check50 rejects greedy even if the correct answer is displayed. What might the problem be?
:( input of 0.41 yields output of 4
\ expected output, but not "0\n"
:( input of 0.01 yields output of 1
\ expected output, but not "0\n"
:( input of 0.15 yields output of 2
\ expected output, but not "0\n"
:( input of 1.6 yields output of 7
\ expected output, but not "2\n"
:( input of 23 yields output of 92
\ expected output, but not "5\n"
:( input of 4.2 yields output of 18
\ expected output, but not "4\n"