Statement
This question is based on bonus of this problem.
We need to count such triple $$$(a, b, c)$$$ that satisfy $$$(0 \leq a + b + c \leq S)$$$ and $$$(0 \leq a \times b \times c \leq T)$$$
Since this number may be very big, let take the result modulo $$$10^9 + 7$$$
Notice that:
- $$$(0, 0, 1) \neq (0, 1, 0) \neq (1, 0, 0)$$$
Constraint:
$$$0 \leq S, T \leq 10^{18}$$$
$$$0 \leq a, b, c$$$
Time Limit: 1s
Memory Limit: 1Gb
Example
Example 0
Example 1
Example 2
Example 3
Example 4
Example 5
Example 6