API Response (JSON)
{
"problem": {
"name": "[GESP样题 二级] 勾股数",
"description": {
"content": "勾股数是很有趣的数学概念。如果三个正整数 $a,b,c$,满足 $a^2+b^2=c^2$,而且 $1 \\le a \\le b \\le c$,我们就将 $a, b, c$ 组成的三元组 $(a,b,c)$ 称为勾股数。你能通过编程,数数有多少组勾股数,能够满足 $c \\le n$ 吗?",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 131072
},
"difficulty": {
"LuoguStyle": "P1"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGB3845"
},
"statements": [
{
"statement_type": "Markdown",
"content": "勾股数是很有趣的数学概念。如果三个正整数 $a,b,c$,满足 $a^2+b^2=c^2$,而且 $1 \\le a \\le b \\le c$,我们就将 $a, b, c$ 组成的三元组 $(a,b,c)$ 称为勾股数。你能通过编程,数数有多少组勾股数,能够满足 $c \\le n$ 吗?\n\n## Input\n\n输入一行,包含一个正整数 $n$。约定 $1 \\le n \\le 1000$。\n\n## O...",
"is_translate": false,
"language": "English"
}
]
}