13 62
131 One super-lucky number is $x = 131$, because: * $x = 131$ contains $13$ as a substring. ($1$\-st through $2$\-nd characters) * $2x = 262$ contains $62$ as a substring. ($2$\-nd through $3$\-rd characters) Some other super-lucky numbers are $313$, $8135$, and $135797531$, which would also be accepted.
69120 824
869120 One super-lucky number is $x = 869120$, because: * $x = 869120$ contains $69120$ as a substring. ($2$\-nd through $6$\-th characters) * $2x = 1738240$ contains $824$ as a substring. ($4$\-th through $6$\-th characters) The smallest super-lucky number is $69120$, but note that any lucky number with at most $18$ digits would be accepted.
6283185 12566370
6283185 When $x = 6283185$, $x$ is $A$ itself, and $2x$ is $B$ itself. In such a case too, $x$ is a super-lucky number.
{
"problem": {
"name": "Two Lucky Numbers",
"description": {
"content": "Mr. AtCoder reads in the newspaper that today's lucky number is a positive integer $A$ and tomorrow's is a positive integer $B$. Here, he defines a positive integer $x$ that satisfies both of the foll",
"description_type": "Markdown"
},
"platform": "AtCoder",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "arc131_a"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Mr. AtCoder reads in the newspaper that today's lucky number is a positive integer $A$ and tomorrow's is a positive integer $B$.\nHere, he defines a positive integer $x$ that satisfies both of the foll...",
"is_translate": false,
"language": "English"
}
]
}