Odometer (Silver)
의견: 0
Farmer John's cows are on a road trip! The odometer displays an integer mileage value, starting at X (100 <= X <= 10^18) miles and ending at Y (X <= Y <= 10^18) miles. Whenever the odometer displays an 'interesting' number (including at the start and end of the trip) the cows will moo. A number is 'interesting' if when you look at all its digits except for leading zeros, at least half of these should be the same. For example, the numbers 3223 and 110 are interesting, while the numbers 97791 and 123 are not.
Help FJ count how many times the cows will moo during the trip.
Line 1: Two integers, X and Y, separated by a space.
A single integer containing how many times the cows will moo during the trip.
odometer.inodometer.out110 13314Output details: The cows moo at 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 121, 122, 131, and 133.
riseoj 작성
출처 올림피아드 > USACO > 2013-2014 > US Open > Silver
평가 및 의견
Odometer (Silver)
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Odometer (Silver)