B. Kids' Riddle

Codeforces
IDCF784B
Time2000ms
Memory64MB
Difficulty
English · Original
Chinese · Translation
Formal · Original
Programmers' kids solve this riddle in 5-10 minutes. How fast can you do it? ## Input The input contains a single integer _n_ (0 ≤ _n_ ≤ 2000000000). ## Output Output a single integer. [samples]
程序员的孩子们能在5-10分钟内解出这个谜题。你有多快? 输入包含一个整数 #cf_span[n] (#cf_span[0 ≤ n ≤ 2000000000])。 请输出一个整数。 ## Input 输入包含一个整数 #cf_span[n] (#cf_span[0 ≤ n ≤ 2000000000])。 ## Output 请输出一个整数。 [samples]
Given: - An integer $ n $, where $ 0 \leq n \leq 2 \times 10^9 $. Objective: - Output a single integer $ f(n) $, where $ f $ is an unknown function defined by the riddle. (Note: The problem statement provides no explicit mathematical definition of $ f(n) $. The function must be inferred from the context of the riddle, which is not provided.)
Samples
Input #1
11
Output #1
2
Input #2
14
Output #2
0
Input #3
61441
Output #3
2
Input #4
571576
Output #4
10
Input #5
2128506
Output #5
3
API Response (JSON)
{
  "problem": {
    "name": "B. Kids' Riddle",
    "description": {
      "content": "Programmers' kids solve this riddle in 5-10 minutes. How fast can you do it?",
      "description_type": "Markdown"
    },
    "platform": "Codeforces",
    "limit": {
      "time_limit": 2000,
      "memory_limit": 65536
    },
    "difficulty": "None",
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "CF784B"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "Programmers' kids solve this riddle in 5-10 minutes. How fast can you do it?\n\n## Input\n\nThe input contains a single integer _n_ (0 ≤ _n_ ≤ 2000000000).\n\n## Output\n\nOutput a single integer.\n\n[samples]...",
      "is_translate": false,
      "language": "English"
    },
    {
      "statement_type": "Markdown",
      "content": "程序员的孩子们能在5-10分钟内解出这个谜题。你有多快?\n\n输入包含一个整数 #cf_span[n] (#cf_span[0 ≤ n ≤ 2000000000])。\n\n请输出一个整数。\n\n## Input\n\n输入包含一个整数 #cf_span[n] (#cf_span[0 ≤ n ≤ 2000000000])。\n\n## Output\n\n请输出一个整数。\n\n[samples]...",
      "is_translate": true,
      "language": "Chinese"
    },
    {
      "statement_type": "Markdown",
      "content": "Given:  \n- An integer $ n $, where $ 0 \\leq n \\leq 2 \\times 10^9 $.\n\nObjective:  \n- Output a single integer $ f(n) $, where $ f $ is an unknown function defined by the riddle.\n\n(Note: The problem stat...",
      "is_translate": false,
      "language": "Formal"
    }
  ]
}
Full JSON Raw Segments