{"problem":{"name":"[信息与未来 2015] 求回文数","description":{"content":"一个正整数，正读和反读都相同的数为回文数，例如 $22,131,2442,37073,6,\\cdots$。所有的 $1$ 位数都是回文数。 现给出一个正整数 $n$，求出 $[1,n]$ 中的回文数的个数。","description_type":"Markdown"},"platform":"Luogu","limit":{"time_limit":1000,"memory_limit":131072},"difficulty":{"LuoguStyle":"P1"},"is_remote":true,"is_sync":true,"sync_url":null,"sign":"LGB3882"},"statements":[{"statement_type":"Markdown","content":"一个正整数，正读和反读都相同的数为回文数，例如 $22,131,2442,37073,6,\\cdots$。所有的 $1$ 位数都是回文数。\n\n现给出一个正整数 $n$，求出 $[1,n]$ 中的回文数的个数。\n\n## Input\n\n一个整数 $n$。\n\n## Output\n\n一个整数，即 $1\\sim n$ 中全部回文数的个数。\n\n[samples]\n\n## Note\n\n### 样例解释\n在 $1$ 至 $24$ 中，回文数有 $1\\sim 9,11,22$，共 $11$ 个。\n### 数据范围\n$1\\le n\\le10^4$。","is_translate":false,"language":"English"}],"meta":{"iden":"LGB3882","tags":["2015","江苏","枚举","信息与未来"],"sample_group":[["24","11"]],"created_at":"2026-03-03 11:09:25"}}