Skip to content

UVa 10420

WinDaLex edited this page Sep 15, 2013 · 1 revision

List of Conquests

from Volume 1. Elementary Problem Solving :: Sorting/Searching

Description

某个大 BOSS 的情人遍布世界各地。因此他有个情人表,表的每项以国家名开头,之后是情人名。给你这张表,要求统计他在各国情人的数量。

Solution

用 map 统计一下即可,还顺带完成排序功能。

Clone this wiki locally