Chữ số tận cùng #3

View as PDF



Problem type
Points: 100 (p) Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Nhập vào 3 số nguyên dương \(A, B, C\). In ra số dư của chia tích các số trong khoảng [\(A, B\)] cho \(C\).

Input

  • Nhập 2 số nguyên dương \(A, B\) (\(1 \leq A, B \leq 10^5\)) và số nguyên \(C\) (\(C \leq 10^9\)).

Output

  • In ra số dư tìm được.

Example

Test 1
Input
1 3 11
Output
6

Comments

There are no comments at the moment.