API Response (JSON)
{
"problem": {
"name": "C. Chessboard Billiard",
"description": {
"content": "Let's imagine: there is a chess piece _billiard ball_. Its movements resemble the ones of a bishop chess piece. The only difference is that when a billiard ball hits the board's border, it can reflect",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 2000,
"memory_limit": 262144
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF74C"
},
"statements": [
{
"statement_type": "Markdown",
"content": "Let's imagine: there is a chess piece _billiard ball_. Its movements resemble the ones of a bishop chess piece. The only difference is that when a billiard ball hits the board's border, it can reflect...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "让我们想象:有一个棋子叫做“台球”。它的移动方式类似于象棋中的象,唯一的区别是,当台球撞到棋盘边界时,它可以发生反射并继续移动。\n\n更正式地,首先选择四个对角线方向之一,台球沿该方向移动。当它到达位于棋盘边缘的格子时,台球会从边界反射;它将运动方向改变90度并继续移动。具体来说,当台球到达角落格子时,它会经历两次反射,然后开始沿相反方向移动。在移动过程中,台球可以进行无限次反射。在轨迹上的任意格子...",
"is_translate": true,
"language": "Chinese"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n, m \\in \\mathbb{Z} $ with $ 2 \\leq n, m \\leq 10^6 $. \nLet $ G = [n] \\times [m] $ be the set of squares of an $ n \\times m $ chessboard. \nDefine an equivalence relation $ \\si...",
"is_translate": false,
"language": "Formal"
}
]
}