ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1107. Warehouse Problem

1107 Trying to solve
Posted by svr 25 Jul 2007 12:18
1. First of all it seems that YES alltimes;
2. Secondly evident that we should find partition
of set of all possiible multisets of products not only given K~50000;
3. Let P(i,A)- predicate for i-th subdivision of the partition. 1<=i<=N+1.
Eqution P(i,A)==1 must become wrong if we add any element to A or raplace any element in A.
It seems that |A| mod(N+1) has this stable property.
Re: 1107 Trying to solve
Posted by Chmel_Tolstiy 15 Apr 2008 01:28
Thanks for ur idea.
Re: 1107 Trying to solve
Posted by Denis Koshman 29 Jul 2008 16:51
At first I was suprised by your statement that the answer is always YES.. But then I saw that M>N in problem statement, that makes life a lot easier! :) My current thoughts are about assiging shops to some dedicated type of goods.