API Response (JSON)
{
"problem": {
"name": "B. Weird Subtraction Process",
"description": {
"content": "You have two variables _a_ and _b_. Consider the following sequence of actions performed with these variables: 1. If _a_ = 0 or _b_ = 0, end the process. Otherwise, go to step 2; 2. If _a_ ≥ 2·_b_,",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF946B"
},
"statements": [
{
"statement_type": "Markdown",
"content": "You have two variables _a_ and _b_. Consider the following sequence of actions performed with these variables:\n\n1. If _a_ = 0 or _b_ = 0, end the process. Otherwise, go to step 2;\n2. If _a_ ≥ 2·_b_,...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "你有两个变量 #cf_span[a] 和 #cf_span[b]。考虑对这两个变量执行以下操作序列:\n\n最初,#cf_span[a] 和 #cf_span[b] 的值为正整数,因此该过程将是有限的。\n\n你需要确定过程结束时 #cf_span[a] 和 #cf_span[b] 的值。\n\n输入的唯一一行包含两个整数 #cf_span[n] 和 #cf_span[m](#cf_span[1 ≤ n, m...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, m \\in \\mathbb{Z}^+ $ be the initial values of variables $ a $ and $ b $, respectively. \n\n**Process** \nWhile $ a > 0 $ and $ b > 0 $: \n- If $ a \\geq b $, set $ a \\leftarro...",
"is_translate": false,
"language": "Formal"
}
]
}