Hello!
Today I am the author of all tasks. At the contest you will be asked to help students from Chelyabinsk in solving their non-trivial problems.
I want to thank all those who helped me to prepare the round: Anton Garder for his invaluable assistance in the preparation of sets of tasks, Demid Kucherenko for assistance in the preparation of conditions, Artem Rakhov for coordinating the activities and patience J, Maria Belova for translating and Mike Mirzayanov for a great system.
Good luck!
Winner - Solo
Analysis - http://codeforces.me/blog/entry/1571
1 1 2 2
a
b: a 2
c: a 1
1 a
1 a
Why is the answer:
1
c 2
We can make b since b needs 2 a's, and ally #1 has 2 a's. So I don't understand why the answer isn't:
1
b 1
"It is guaranteed that after the i-th purchase no more than one opportunity to collect the composite artifact appears. If such an opportunity arose, the hero must take advantage of it."
But if we make another a, then doesn't that mean that we had *more than one opportunity to collect the composite artiffact", which seems to contradict the problem statement?
But anyway, thanks to the writer for a nice set, keep up the good work!
So when we have a we build c. b will never be build.
It would have been much clearer if they had said:
"As soon as you purchase an item, you have to make whatever composite item you can (if any) at that point in time".
"It is guaranteed that after the i-th purchase no more than one opportunity to collect the composite artifact appears. If such an opportunity arose, the hero must take advantage of it."