favorite We need a little bit of your help to keep things running, click on this banner to learn more

Week 8: December 28 - January 10. Functions. Part 2

Between A and B

Given nonnegative integers a and b (ab) and positive integer x. How many numbers are there between a and b inclusively, divisible by x?


Three numbers a, b and x (0ab1018, 1x1018).


Print the answer to the problem.

Time limit 1 second
Memory limit 128 MiB
Input example #1
5 10 3
Output example #1
Author Rashad Mammadov, Abutalib Namazov
Source Azərbaycan 2019: Yuxarı yaş olimpiada hazırlığı qrupuna seçim turu