Codeforces Educational 161 div2
Codeforces Educational 161 div2 Problem A Standard difficulty for problem A. This one you can trick yourself easily though and comprehending what it is asking is a little challenging. The template is only invalidated if it fails at all i, if it passes at any ith index it is good. Check the following. 1. if all ( a [ i ] == c [ i ] or b [ i ] == c [ i ] for i in range ( n )): 2. print ( "NO" ) Problem B Hard for a second problem, requires basic combinatorics and mathematics. Sum of the two smallest sides has to be less than the longest side. Triangle Inequality Theorem, logic to figure out that their are only few possibilities. But also you need to know how to pick 3 items from a collection of distinct items. And how to pick 2. ...