2 11 2 42
2 * When $(i,j)=(1,1)$: $f(A_1,A_1)=22$ is a multiple of $11$. * When $(i,j)=(1,2)$: $f(A_1,A_2)=242$ is a multiple of $11$. * When $(i,j)=(2,1)$: $f(A_2,A_1)=422$ is not a multiple of $11$. * When $(i,j)=(2,2)$: $f(A_2,A_2)=4242$ is not a multiple of $11$. From the above, the pairs of integers that satisfy all the conditions are $(i,j)=(1,1),(1,2)$, which is two pairs. Thus, output $2$.
4 7 2 8 16 183
4
5 5 1000000000 1000000000 1000000000 1000000000 1000000000
25
12 13 80 68 862370 82217 8 56 5 168 672624 6 286057 11864
10
{
"problem": {
"name": "183183",
"description": {
"content": "For positive integers $x,y$, define $f(x,y)$ as follows: * The value obtained by interpreting $x,y$ in decimal notation without leading zeros as strings, concatenating them in this order to obtain ",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "abc433_d"
},
"statements": [
{
"statement_type": "Markdown",
"content": "For positive integers $x,y$, define $f(x,y)$ as follows:\n\n* The value obtained by interpreting $x,y$ in decimal notation without leading zeros as strings, concatenating them in this order to obtain ...",
"is_translate": false,
"language": "English"
}
]
}