{"problem":{"name":"直方图","description":{"content":"给定一个非负整数数组，统计里面每一个数的出现次数。我们只统计到数组里最大的数。 假设 $Fmax（Fmax \\le 100000）$是数组里最大的数，那么我们只统计 $\\{0,1,2 \\ldots Fmax \\}$ 里每个数出现的次数。","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":"LGB2096"},"statements":[{"statement_type":"Markdown","content":"给定一个非负整数数组，统计里面每一个数的出现次数。我们只统计到数组里最大的数。\n\n假设 $Fmax（Fmax \\le 100000）$是数组里最大的数，那么我们只统计 $\\{0,1,2 \\ldots Fmax \\}$ 里每个数出现的次数。\n\n## Input\n\n第一行 $n$ 是数组的大小。$1 \\le n \\le 100000$。\n\n紧接着一行是数组的 $n$ 个元素。\n\n## Output\n\n按顺序输出每个数的出现次数，一行一个数。如果没有出现过，则输出 $0$。\n\n对于例子中的数组，最大的数是 $3$，因此我们只统计 $\\{0,1,2,3\\}$ 的出现频数。\n\n[samples]","is_translate":false,"language":"English"}],"meta":{"iden":"LGB2096","tags":["数组"],"sample_group":[["5\n1 1 2 3 1","0\n3\n1 \n1"]],"created_at":"2026-03-03 11:09:25"}}