API Response (JSON)
{
"problem": {
"name": "G. Perfectionist Arkadiy",
"description": {
"content": "Arkadiy has lots square photos with size _a_ × _a_. He wants to put some of them on a rectangular wall with size _h_ × _w_. The photos which Arkadiy will put on the wall must form a rectangular grid ",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 1000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF795G"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Arkadiy has lots square photos with size _a_ × _a_. He wants to put some of them on a rectangular wall with size _h_ × _w_.\n\nThe photos which Arkadiy will put on the wall must form a rectangular grid ...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "Arkadiy 有大量边长为 $a × a$ 的正方形照片。他想将其中一些贴在一面尺寸为 $h × w$ 的矩形墙上。\n\nArkadiy 贴在墙上的照片必须形成一个矩形网格,且相邻照片之间在垂直和水平方向上的间距,以及最外层照片行/列到墙边界的距离,都必须等于某个非负实数 $x$。请参考下图以更好地理解题意。\n\nArkadiy 尚未决定要贴多少张照片,但他至少要贴一张。你的任务是确定在满足所有约束...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ a, h, w \\in \\mathbb{Z}^+ $ be the side length of each square photo, and the height and width of the wall, respectively. \nLet $ m, n \\in \\mathbb{Z}^+ $ be the number of rows an...",
"is_translate": false,
"language": "Formal"
}
]
}