EQUATION : Ax + By + Cz = N ( 1 <= A , B , C <= 200 , 1 <= N <= 10 ^ 18) Count solution (x , y , z) such that x >= 0 , y >= 0 , z >= 0 Result % MOD (MOD <= 10 ^ 9 + 9 )
| # | User | Rating |
|---|---|---|
| 1 | Benq | 3857 |
| 2 | jiangly | 3810 |
| 3 | maroonrk | 3534 |
| 4 | tourist | 3528 |
| 5 | Kevin114514 | 3510 |
| 6 | turmax | 3411 |
| 7 | Um_nik | 3387 |
| 8 | Radewoosh | 3367 |
| 9 | heuristica | 3322 |
| 10 | strapple | 3317 |
| # | User | Contrib. |
|---|---|---|
| 1 | Qingyu | 157 |
| 2 | maspy | 150 |
| 3 | nik_exists | 145 |
| 4 | Um_nik | 144 |
| 5 | Errichto | 139 |
| 6 | adamant | 136 |
| 7 | maroonrk | 134 |
| 8 | DNR | 132 |
| 9 | AmShZ | 131 |
| 10 | Dominater069 | 129 |
EQUATION : Ax + By + Cz = N ( 1 <= A , B , C <= 200 , 1 <= N <= 10 ^ 18) Count solution (x , y , z) such that x >= 0 , y >= 0 , z >= 0 Result % MOD (MOD <= 10 ^ 9 + 9 )
| Name |
|---|



Can you share link to the problem, or minimum value of
A, B, C?Can we assume
1<=A,B,C<=200?If gcd(A, B, C) doesn't divide N, there is no solution. I didn't solved the problem, but I think approaching from Bezout's Identity is good way.