立方根

Luogu
IDLGB3627
Time1000ms
Memory128MB
DifficultyP2
二分枚举
给定正整数 $n$,求 $\sqrt[3]{n}$。答案向下取整。 ## Input 仅一行,一个正整数 $n$。 ## Output 仅一行,一个正整数,表示 $\sqrt[3]n$。向下取整输出。 [samples] ## Note 对于 $100\%$ 的数据,有 $n\leq 10^{15}$。
Samples
Input #1
27
Output #1
3
Input #2
100000
Output #2
46
Input #3
1000000000000000
Output #3
100000
API Response (JSON)
{
  "problem": {
    "name": "立方根",
    "description": {
      "content": "给定正整数 $n$,求 $\\sqrt[3]{n}$。答案向下取整。",
      "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": "LGB3627"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "给定正整数 $n$,求 $\\sqrt[3]{n}$。答案向下取整。\n\n## Input\n\n仅一行,一个正整数 $n$。\n\n## Output\n\n仅一行,一个正整数,表示 $\\sqrt[3]n$。向下取整输出。\n\n[samples]\n\n## Note\n\n对于 $100\\%$ 的数据,有 $n\\leq 10^{15}$。...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments