|
|
вернуться в форумWhat is the role of K? Does it matte how many couples there exist? And, eventually, when a group of 10 hobbits remains unsplit, do I have to split it? I mean, it's possible for some hobbits o remain unsplitted..... what should I do with them? to make you confused (!?) to make the problem harder (to understand)... i just read it and nothing else -_- and n too > i just read it and nothing else -_- Re: I personally think that u can count the leafes of the tree with 2 members, don't have to use k. Re: What is the role of K? The role is that: you can give answer only reading n and k. =) =) Re: What is the role of K? Here is a small test case: 12 0 1 3 2 5 3 5 4 2 2 5 5 1 6 1 7 1 8 1 9 1 3 2 10 2 11 3 4 2 12 1 13 1 10 2 14 1 15 1 11 2 16 1 17 2 17 2 18 1 19 1 The answer is 66. Re: What is the role of K? Послано Pixov 10 июл 2015 20:24 It is given to understand when to stop reading cases, I guess. If you use EOF checking and there will be anything else in the input, your solution will fail. |
|
|