4 1 1 1 1 6 7 167 167 167 111 666 777
36
45
731780675
0
For the first case, tuples such as $(X_{1}, X_{2}, X_{3}) = (1, 6, 7), (2, 1, 3)$ satisfy the conditions.
On the other hand, tuples such as $(X_{1}, X_{2}, X_{3}) = (6, 7, 13), (3, 4, 5)$ do not.
There are $36$ tuples $(X_{1}, X_{2}, X_{3})$ that satisfy the conditions, so print $36$.
For the third case, remember to print the result modulo $998244353$.
For the fourth case, there may be no tuples $(X_{1}, X_{2}, X_{3})$ that satisfy the conditions.{
"problem": {
"name": "1 + 6 = 7",
"description": {
"content": "You are given positive integers $A_{1}, A_{2}, A_{3}$. Find the number, modulo $998244353$, of tuples of positive integers $(X_{1}, X_{2}, X_{3})$ that satisfy all of the following conditions. * $X",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc178_b"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given positive integers $A_{1}, A_{2}, A_{3}$. Find the number, modulo $998244353$, of tuples of positive integers $(X_{1}, X_{2}, X_{3})$ that satisfy all of the following conditions.\n\n* $X...",
"is_translate": false,
"language": "English"
}
]
}