subject

Login In the first and only line are written two integers L and R (1000 ≤ L ≤ R ≤ 9999), which denote the limits of the range.

Exit
On standard output, print how many numbers in the given range (numbers that are either greater than or equal to L and less than or equal to R) the digits are in ascending order.

Limits
Time limit: 1 second
Memory limit: 64 megabytes

Examples

input 1345 1345
exit 1

input 1310 1319

exit 0

input 1233 1245

exit 7

Explanation for the third test example: These are the numbers 1234, 1235, 1236, 1237, 1238, 1239 and 1245.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 17:00
The camera still is bad even with the new iphone xr and especially in low light it is even worst because you can see the pixels more if its in low light. if all you apple customers want apple to fix this then lets fill there feedback with complaints about the
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
How can the temperature of a room be raised by 5degreesf?
Answers: 1
question
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
You know the right answer?
Login In the first and only line are written two integers L and R (1000 ≤ L ≤ R ≤ 9999), which deno...
Questions
question
Mathematics, 18.07.2019 19:30
Questions on the website: 13722361