19th Jan 2018, 2:05 PM
Tanvir sadi
Tanvir sadi - avatar
2 odpowiedzi
+ 4
if i understood your problem right, its a casting problem with the pow function that results in rounding errors, try this: https://code.sololearn.com/cvjK2RXzrA1Z/?ref=app
19th Jan 2018, 2:45 PM
capsloth
capsloth - avatar
+ 2
Replace a = pow... With: a *= 10; a++;
19th Jan 2018, 2:41 PM
Jacob Pembleton
Jacob Pembleton - avatar