Three, seven, joker - analysis of the solution of problems from the GridGain booklet at the Joker 2017 conference
Two weeks ago we were at a Java conference in St. Petersburg - Joker 2017. Already traditionally they came there not with empty hands, but with fun and difficult tasks that you can laugh at and / or break your head. Thanks to everyone who solved problems during these two days, asked questions and offered his original solutions. Congratulations to the winners!
All tasks correctly solved as many as three people:
- Rurik Krylov (who also passed the spine from the booklet with the correct answers the very first)
- Evgeny Kruten
- Vasily Briginets
')
We publish, as promised, detailed solutions. They brought it under a spoiler so that those who missed the conference could also try their hand.
Problem number 1
Decision
t - the duration of the action in minutes,
r - the number of written lines of code in time t,
k is the number of nods during time t.
Replace
Solve the usual quadratic equation: discriminant, root, two possible solutions:
Replace back:
and choose one root that satisfies the condition t1 <60, which is substituted into the equation:
Answer: 10,185
Problem number 2
Decision
We have a number system with a base of 10 + 33 = 43
We bring Cyrillic numbers to decimal representation: