{"problem":{"name":"数字统计","description":{"content":"请统计某个给定范围 $[L,R]$ 的所有整数中，数字 $2$ 出现的次数。 比如给定范围 $[2,22]$，数字 $2$ 在数 $2$ 中出现了 $1$ 次，在数 $12$ 中出现 $1$ 次，在数 $20$ 中出现 $1$ 次，在数 $21$ 中出现 $1$ 次，在数 $22$ 中出现 $2$ 次，所以数字 $2$ 在该范围内一共出现了 $6$ 次。","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":"LGB2082"},"statements":[{"statement_type":"Markdown","content":"请统计某个给定范围 $[L,R]$ 的所有整数中，数字 $2$ 出现的次数。\n\n比如给定范围 $[2,22]$，数字 $2$ 在数 $2$ 中出现了 $1$ 次，在数 $12$ 中出现 $1$ 次，在数 $20$ 中出现 $1$ 次，在数 $21$ 中出现 $1$ 次，在数 $22$ 中出现 $2$ 次，所以数字 $2$ 在该范围内一共出现了 $6$ 次。\n\n## Input\n\n输入共 $1$ 行，为两个正整数 $L$ 和 $R$，之间用一个空格隔开。\n\n## Output\n\n输出共 $1$ 行，表示数字 $2$ 出现的次数。\n\n[samples]\n\n## Note\n\n$1<L,R<10000$。","is_translate":false,"language":"English"}],"meta":{"iden":"LGB2082","tags":["循环结构"],"sample_group":[["2 22","6"],["2 100","20"]],"created_at":"2026-03-03 11:09:25"}}