API Response (JSON)
{
"problem": {
"name": "A2. Rasta-lover Pair",
"description": {
"content": "A pair (p, q) of integer numbers is called Rasta - lover if and only if 1 ≤ p, q < n and there is a positive integer like x such that: px ≡ q (modn) Subtasks 1 - 3: Given n, calculate the number o",
"description_type": "Markdown"
},
"platform": "Codeforces",
"limit": {
"time_limit": 15000,
"memory_limit": 1048576
},
"difficulty": "None",
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "CF10070A2"
},
"statements": [
{
"statement_type": "Markdown",
"content": "A pair (p, q) of integer numbers is called Rasta - lover if and only if 1 ≤ p, q < n and there is a positive integer like x such that:\n\npx ≡ q (modn)\n\nSubtasks 1 - 3: \n\nGiven n, calculate the number o...",
"is_translate": false,
"language": "English"
},
{
"statement_type": "Markdown",
"content": "**Definitions** \nLet $ n \\in \\mathbb{Z}^+ $. \nLet $ R(n) = \\{ (p, q) \\in \\mathbb{Z}^2 \\mid 1 \\leq p, q < n \\land \\exists x \\in \\mathbb{Z}^+ : p^x \\equiv q \\pmod{n} \\} $. \nLet $ S(n) = \\{ p \\in \\mat...",
"is_translate": false,
"language": "Formal"
}
]
}