2
80 For example, $(x_1,x_2)=((1,1,2,2),(1,2,1,2))$ does not satisfy the condition, because if $y=(1,1,1,2)$, then $d(x_1,y)=1,d(x_2,y)=1$. On the other hand, $(x_1,x_2)=((1,1,1,1),(2,2,2,2))$ satisfies the condition. There are $80$ instances of $(x_1,x_2)$ that satisfy the condition.
3
597965565
10
241191911
{
"problem": {
"name": "Hamming-Distant Arrays",
"description": {
"content": "You are given an integer $N$. For length-$N^2$ integer sequences $a$ and $b$ consisting of integers between $1$ and $N$ (inclusive), we define their distance $d(a,b)$ as follows: * $d(a,b)=$ \"the n",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "agc076_a"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You are given an integer $N$. For length-$N^2$ integer sequences $a$ and $b$ consisting of integers between $1$ and $N$ (inclusive), we define their distance $d(a,b)$ as follows:\n\n* $d(a,b)=$ \"the n...",
"is_translate": false,
"language": "English"
}
]
}