頁面無法載入?點擊這裡可能會修復。
Placeholder

#3895

Odometer 1s 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.


範例

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

需要登入才能撰寫程式碼。