Sweet Harvest

Back to General discussions forum

TheComputerCat     2019-07-15 21:35:20
User avatar

Hi guys, i have a problem with the problem 60, i did the program and it works well the most of the cases, but sometimes fails and i really dont know why, for example:

Answer:     212 148 130 173 145 116 150 175 148 206 174 135 130 144 199 109 207 128 181 186 106 154
My answer : 212 148 128 173 145 116 150 175 146 205 174 135 126 144 199 109 207 120 170 186 96 154

And this is so strange, i have thought a lot about this but i dont know why it is not working. thanks guys

Rodion (admin)     2019-07-17 07:44:18
User avatar

Hello Friend!

And sorry for delay...

Could you please along with the Answer and My answer provide the input, for which you get wrong result (it is enough to give one line, of course) - so we can test it... And also please submit working code for this problem (even if it gives wrong output), because currently code I get here at your page is entering endless loop and freezes (or something like this).

Please login and solve 5 problems to be able to post at forum