HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "Modular Conversion"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecanApr.08.2011 at 05:20:49 PM
0Post is deleted

imesecanApr.09.2011 at 10:19:41 AM
1Unlucky :)

imesecanApr.09.2011 at 09:56:40 PM
2I think you don't need reverse function. When calculating the remainders you can directly add this remainder to the beginning of resulting number:
You can use multiplier as the powers of 10, The first number is to be multiplied with. Let's say that the first modulus operation gives 2 and res is initially 0 and the number is 17
res = res + 1 * rem; ==> res= 2

then for the second remainder
res = res + 10 * rem; ==> res= 2 + 2* 10 ==> 22

then on the third step
res = res + 100 * rem; ==> 22 + 1 * 100 ==> 122

so on.

imesecanMar.19.2013 at 01:15:45 PM
3Post is deleted

imesecanMar.24.2013 at 10:46:50 AM
4Post is deleted


www.contester.ru