Back to General discussions forum
Hi! Looks like example's answer is wrong
Example input data: 7 193170145 1912748246 753156389 614113621 1824520917 53700559 1288077384 911939603 1939066598 1695763253 1905581606 1811712139 878644967 1090885451
answer: 5 8 6 7 9 5 12
or I missing something.
What do you think the example answer should be, and how did you calculate it?
for 193170145 1912748246 as example 193170145 % 6 + 1912748246 % 6 + 2 = 5 + 0 + 2 = 7
Your math is wrong. I'm not sure if it was a typo in entering a calculator or some bug in your code:
193170145 % 6 = 193170145/6 = 32,195,024.166666 (remainder 1)
1912748246 % 6 = 1912748246/6 = 318,791,374.333333 (reaminder 2)
1 + 2 + 2 = 5
Yep... You are right. I have to sleep more )