[GESP202406 一级] 立方数

Luogu
IDLGB4001
Time1000ms
Memory512MB
DifficultyP1
2024GESP
小杨有一个正整数 $n$,他想知道 $n$ 是否是一个立方数。一个正整数 $n$ 是立方数当且仅当存在一个正整数 $x$ 满足 $x\times x\times x=n$ 。 ## Input 第一行包含一个正整数 $n$。 ## Output 如果正整数 $n$ 是一个立方数,输出 `Yes`,否则输出 `No`。 [samples] ## Background 对应的选择、判断题:<https://ti.luogu.com.cn/problemset/1149> ## Note 对于样例 1,存在正整数 $2$ 使得 $8=2\times 2\times 2$ ,因此 $8$ 为立方数。 对于样例 $2$,不存在满足条件的正整数,因此 $9$ 不为立方数。 对于全部数据,保证有 $1 \le n \le 1000$。
Samples
Input #1
8
Output #1
Yes
Input #2
9
Output #2
No
API Response (JSON)
{
  "problem": {
    "name": "[GESP202406 一级] 立方数",
    "description": {
      "content": "小杨有一个正整数 $n$,他想知道 $n$ 是否是一个立方数。一个正整数 $n$ 是立方数当且仅当存在一个正整数 $x$ 满足 $x\\times x\\times x=n$ 。",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 524288
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGB4001"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "小杨有一个正整数 $n$,他想知道 $n$ 是否是一个立方数。一个正整数 $n$ 是立方数当且仅当存在一个正整数 $x$ 满足 $x\\times x\\times x=n$ 。\n\n## Input\n\n第一行包含一个正整数 $n$。\n\n## Output\n\n如果正整数 $n$ 是一个立方数,输出 `Yes`,否则输出 `No`。\n\n[samples]\n\n## Background\n\n对应的选择、判断题...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments