페이지가 로드되지 않나요? 여기를 눌러보면 고쳐질 수도 있어요.
Placeholder

#3895

Odometer 1초 128MB

문제


입력

* Line 1: The first line will contain two integers, X and Y, separated by a space.


출력

* Line 1: A single integer containing how many times the cows will moo during the trip.


예제1

입력
110 133 
출력
14 

Input Details

The trip starts with the odometer at 110 and ends at 133.

Output Details

The cows moo when the odometer reads 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 121, 122, 131, and 133.


출처

USACO 2014 US Silver

역링크 공식 문제집만