We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
The problem is nice, but it is miscategorized. It has nothing to do with geometry and everything to do with combinatorics. Please move this problem to /Mathematics/Combinatorics.
Can someone please put an editorial to this problem? I have seen the successful submissions's code, but it is hard to understand.
Was any math formula used in solving this problem?
The problem is nice, but it is miscategorized. It has nothing to do with geometry and everything to do with combinatorics. Please move this problem to /Mathematics/Combinatorics.
The editorial explains how to compute the number from the formula. But how do you get the formula ? I think that it is more the point of the challenge
Can someone please put an editorial to this problem? I have seen the successful submissions's code, but it is hard to understand. Was any math formula used in solving this problem?
How do I get few sample inputs