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)$$$ and $$$min(a, b, c) \geq 0$$$
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
Input:
- A single line contain only two positive 60-bit integers $$$S$$$ and $$$T$$$ ($$$0 \leq S, T \leq 10^18$$$)
Output:
- Print a single integer, the number of positive tuple satisfy mathematical condition, modulo $$$1000000007$$$
Example
Example 0
Example 1
Example 2
Example 3
Example 4
Example 5
Example 6