ABC conjecture

AtCoder
IDabc227_c
Time2000ms
Memory256MB
Difficulty
You are given a positive integer $N$. Find the number of triples of positive integers $(A, B, C)$ such that $A\leq B\leq C$ and $ABC\leq N$. The Constraints guarantee that the answer is less than $2^{63}$. ## Constraints * $1 \leq N \leq 10^{11}$ * $N$ is an integer. ## Input Input is given from Standard Input in the following format: $N$ [samples]
Samples
Input #1
4
Output #1
5

There are five such triples: $(1,1,1),(1,1,2),(1,1,3),(1,1,4),(1,2,2)$.
Input #2
100
Output #2
323
Input #3
100000000000
Output #3
5745290566750
API Response (JSON)
{
  "problem": {
    "name": "ABC conjecture",
    "description": {
      "content": "You are given a positive integer $N$. Find the number of triples of positive integers $(A, B, C)$ such that $A\\leq B\\leq C$ and $ABC\\leq N$. The Constraints guarantee that the answer is less than $2^{",
      "description_type": "Markdown"
    },
    "platform": "AtCoder",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 262144
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "abc227_c"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "You are given a positive integer $N$.\nFind the number of triples of positive integers $(A, B, C)$ such that $A\\leq B\\leq C$ and $ABC\\leq N$.\nThe Constraints guarantee that the answer is less than $2^{...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments