#9407. [USACO14OPEN] Odometer S
[USACO14OPEN] Odometer S
[USACO14OPEN] Odometer S
题目描述
Farmer John's cows are on a road trip! The odometer on their car displays an integer mileage value, starting at X (100 <= X <= 10^18) miles at the beginning of their trip and ending at Y (X <= YHelp FJ count how many times the cows will moo during the trip.
输入格式
\* 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.110 133
14
提示
The trip starts with the odometer at 110 and ends at 133.The cows moo when the odometer reads 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 121, 122, 131, and 133. 标签: P3107|2014|USACO|数位 DP