Advertisement

树种统计任务(map的应用)(25分)

阅读量:

借助于卫星成像技术的应用,
自然资源研究机构得以识别各种树木的种类。
为研究人员提供帮助以编程实现
确定各类树木在整体树木中的占比情况。

输入格式:

输入则首先包含一个不大于100的正整数N,并接着依次是N行数据。每一行数据代表的是卫星所观察到的一棵树的种类名称。这些名称仅包含不超过30个英文字母及空格字符,并且大小写信息对于分类识别没有影响

输出格式:

按字母顺序排列各类树的名称及其在总数量中的占比比例,并用空格分隔开每一位数值,请确保每位数值均保留四位小数

输入样例:

Red Alder is among the 29 species listed, alongside Ash, Aspen, Basswood, and numerous other tree types such as Beech and Yellow Birch. Commonly found in various regions, these trees include types like Cherry and Cottonwood, which are known for their adaptability. Cypress and Red Elm also feature prominently in this list. Gum and Hackb

全部评论 (0)

还没有任何评论哟~