{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"Hardwoods are the botanical group of trees that have broad leaves, produce a fruit or nut, and generally go dormant in the winter. \r\u003cbr\u003eAmerica\u0027s temperate climates produce forests with hundreds of hardwood species -- trees that share certain biological characteristics. Although oak, maple and cherry all are types of hardwood trees, for example, they are different species. Together, all the hardwood species represent 40 percent of the trees in the United States. \r\u003cbr\u003e\r\u003cbr\u003eOn the other hand, softwoods, or conifers, from the Latin word meaning \"cone-bearing,\" have needles. Widely available US softwoods include cedar, fir, hemlock, pine, redwood, spruce and cypress. In a home, the softwoods are used primarily as structural lumber such as 2x4s and 2x6s, with some limited decorative applications. \r\u003cbr\u003e\r\u003cbr\u003eUsing satellite imaging technology, the Department of Natural Resources has compiled an inventory of every tree standing on a particular day. You are to compute the total fraction of the tree population represented by each species."}},{"title":"Input","value":{"format":"HTML","content":"Input to your program consists of a list of the species of every tree observed by the satellite; one tree per line. No species name exceeds 30 characters. There are no more than 10,000 species and no more than 1,000,000 trees. "}},{"title":"Output","value":{"format":"HTML","content":"Print the name of each species represented in the population, in alphabetical order, followed by the percentage of the population it represents, to 4 decimal places. "}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003eRed Alder\r\nAsh\r\nAspen\r\nBasswood\r\nAsh\r\nBeech\r\nYellow Birch\r\nAsh\r\nCherry\r\nCottonwood\r\nAsh\r\nCypress\r\nRed Elm\r\nGum\r\nHackberry\r\nWhite Oak\r\nHickory\r\nPecan\r\nHard Maple\r\nWhite Oak\r\nSoft Maple\r\nRed Oak\r\nRed Oak\r\nWhite Oak\r\nPoplan\r\nSassafras\r\nSycamore\r\nBlack Walnut\r\nWillow\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eAsh 13.7931\r\nAspen 3.4483\r\nBasswood 3.4483\r\nBeech 3.4483\r\nBlack Walnut 3.4483\r\nCherry 3.4483\r\nCottonwood 3.4483\r\nCypress 3.4483\r\nGum 3.4483\r\nHackberry 3.4483\r\nHard Maple 3.4483\r\nHickory 3.4483\r\nPecan 3.4483\r\nPoplan 3.4483\r\nRed Alder 3.4483\r\nRed Elm 3.4483\r\nRed Oak 6.8966\r\nSassafras 3.4483\r\nSoft Maple 3.4483\r\nSycamore 3.4483\r\nWhite Oak 10.3448\r\nWillow 3.4483\r\nYellow Birch 3.4483\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Hint","value":{"format":"HTML","content":"This problem has huge input, use scanf instead of cin to avoid time limit exceeded."}}]}