Computers and Technology

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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 24.06.2019 16:50, genyjoannerubiera
Ramp charts are generally created in wordlotusexcelpowerpoint
Answers: 1
image
Computers and Technology, 24.06.2019 21:30, erickamiles1797
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
Answers: 2
image
Computers and Technology, 24.06.2019 22:00, justincsh7238
Ican’t open these when it’s just a comment. someone pls explain why this is happening
Answers: 1
image
Computers and Technology, 24.06.2019 22:30, rayniqueamee2002
When can you access the bios setup utility?
Answers: 1
Do you know the correct answer?
Login In the first and only line are written two integers L and R (1000 ≤ L ≤ R ≤ 9999), which deno...

Questions in other subjects:

Konu
Mathematics, 14.05.2021 19:30
Konu
Mathematics, 14.05.2021 19:30