API Response (JSON)
{
"problem": {
"name": "[POI 2020/2021 R3] 收藏家 2 / Kolekcjoner Bajtemonów 2",
"description": {
"content": "给你 $n$ 个数对,你要进行 $n$ 次二选一,这样你就有了 $n$ 个数,最大化这 $n$ 个数的 $\\gcd$。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 600,
"memory_limit": 262144
},
"difficulty": {
"LuoguStyle": "P6"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGP9401"
},
"statements": [
{
"statement_type": "Markdown",
"content": "给你 $n$ 个数对,你要进行 $n$ 次二选一,这样你就有了 $n$ 个数,最大化这 $n$ 个数的 $\\gcd$。\n\n## Input\n\n第一行一个正整数 $n$。\n\n接下来 $n$ 行,每行两个整数,$a_i,b_i$。\n\n## Output\n\n一行一个数:最大的 $\\gcd$。\n\n[samples]\n\n## Background\n\n译自 [XXVIII Olimpiada Informat...",
"is_translate": false,
"language": "English"
}
]
}