Educational Codeforces Round 69 (Rated for Div. 2)
A. DIY Wooden Ladder time limit per test:2 seconds memory limit per test:256 megabytes input:standard input output:standard output Let's denote a k k-step ladder as the following structure: exactly k + 2 k+2 wooden planks, of which two planks of length at least k + 1 k+1 — the base of the ladder; k k planks of length at least 1 1 — the steps of the ladder; Note that neither the base planks, nor the steps planks are required to be equal. For example, ladders 1 1 and 3 3 are correct 2 2-step ladders and ladder 2 2 is a correct 1 1-step ladder. On the first picture the lengths of planks are [ 3 ,