Vrijeme: 09:03

Vragovi i čokolade | Devils and chocolates #4

Da na ploču zapišemo brojeve 2^{3336} i 5^{3336} trebalo bi nam jako jako dugo. Vjerojatno bi nam trebalo toliko dugo da bismo prije umrli nego uspjeli zapisati te brojeve do kraja. Na sreću za našeg Frenda Ivana, on je Besmrtan pa može zapisati svih n znamenaka od 2^{3336} i svih m znamenaka od 5^{3336}. Prije nego je počeo pisati rekao Vam je Dođi pa vidi. Budite mudriji od Ivana i prije njega izračunajte koliko je n + m.
If we were to write down the numbers 2^{3336} and 5^{3336} on a board, it would take an extremely long time—probably so long that we'd die before we could finish writing them. Luckily for our friend Ivan, he is Immortal and can write all n digits of 2^{3336} and all m digits of 5^{3336}. Before he started writing, he told you, "Come and see." Be wiser than Ivan and calculate n + m before him.