API Response (JSON)
{
"problem": {
"name": "【模板】队列",
"description": {
"content": "请你实现一个队列(queue),支持如下操作: - `push(x)`:向队列中加入一个数 $x$。 - `pop()`:将队首弹出。如果此时队列为空,则不进行弹出操作,并输出 `ERR_CANNOT_POP`。 - `query()`:输出队首元素。如果此时队列为空,则输出 `ERR_CANNOT_QUERY`。 - `size()`:输出此时队列内元素个数。",
"description_type": "Markdown"
},
"platform": "Luogu",
"limit": {
"time_limit": 1000,
"memory_limit": 131072
},
"difficulty": {
"LuoguStyle": "P2"
},
"is_remote": true,
"is_sync": true,
"sync_url": null,
"sign": "LGB3616"
},
"statements": [
{
"statement_type": "Markdown",
"content": "请你实现一个队列(queue),支持如下操作:\n- `push(x)`:向队列中加入一个数 $x$。\n- `pop()`:将队首弹出。如果此时队列为空,则不进行弹出操作,并输出 `ERR_CANNOT_POP`。\n- `query()`:输出队首元素。如果此时队列为空,则输出 `ERR_CANNOT_QUERY`。\n- `size()`:输出此时队列内元素个数。\n\n## Input\n\n第一行,一个...",
"is_translate": false,
"language": "English"
}
]
}