http://www.elijahqi.win/archives/3815
题目描述
Mishka started participating in a programming contest. There are n n problems in the contest. Mishka’s problem-solving skill is equal to k k .
Mishka arranges all problems from the contest into a list. Because of his weird principles, Mishka only solves problems from one of the ends of the list. Every time, he chooses which end (left or right) he will solve the next problem from. Thus, each problem Mishka solves is either the leftmost or the rightmost problem in the list.
Mishka cannot solve a problem with difficulty greater than k k . When Mishka solves the problem, it disappears from the list, so the length of the list decreases by 1 1 . Mishka stops when he is unable to solve any problem from any end of the list.
How many problems can Mishka solve?
输入输出格式
输入格式:
The first line of input contains two integers