# (YKL43(UVA10420)) List of Conquests : YKL43_UVA10420_List_of_Conquests.cpp  ```cpp! #include <iostream> #include <map> #include <string> #include <sstream> using namespace std; int main() { int n; cin >> n; cin.ignore(); map<string, int> countryCount; for (int i = 0; i < n; i++) { string line, country; getline(cin, line); stringstream ss(line); ss >> country; countryCount[country]++; } for(const auto &temp : countryCount){ cout<<temp.first<<" " << temp.second<<endl; } } ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up