Everey Leaf in Every Tree - new problem from Vladimir

Back to General discussions forum

Rodion (admin)     2022-08-01 06:10:07
User avatar

Dear Friends, you may find that we have another problem submitted by our kind colleague Vladimir:

Every Leaf on Every Tree

I vaguely feel it is somewhere between childish arithmetics and advanced number theory, but not sure yet :) Curious to try myself!

Hopefully Vladimir can review and verify the task - there was minor change in code due to math function lacking in outdated python (3.5) used by server. Also there was small clarification marked "important" in the text which I decided to drop (hoping it becomes clear from description above and leaving careless people a chance to figure it out anyway from supposed mismatch with example) - but please do tell if you would like this to be returned :)

Sorry for delay with publishing it - it seems Vladimir properly send "notification to admin" in the forum post mentioning it but due to duscussion continuation I failed to realize it immediately when quickly looking at the topic. But this is a good hint - I think that optional "note" should be included to this notification functionality.

zelevin     2022-08-01 14:15:35

Thanks, Rodion!

Since two of our colleagues have already solved it (at this writing), I'm certain your Python3.5 compatibility fix is correct.

I am also fine with your edit; that was the last-minute addition that was somewhat redundant.

I like the problems that, in one insight, take the solver from "Whuh?" to "Wow." Hopefully, this one works like that as well.

I'll post my own solution in about a week.

Please login and solve 5 problems to be able to post at forum