1 #include <string> 2 #include <iostream> 3 #include <map> 4 using namespace std; 5 6 7 typedef map<string,int> mapsi ; 8 typedef mapsi::iterator mapsi_it; 9 10 map<string,int> compteur; 11 12 main () { 13 14 15 while(true) { 16 string mot; 17 cin >> mot; 18 if (cin.eof()) break; 19 compteur[mot]++; 20 }; 21 22 23 compteur.erase(" "); 24 for (mapsi_it i = compteur.begin(); i != compteur.end(); ++i) { 25 if (i->second < 5) continue; 26 if (i->first.find_first_of("azertyuiopqsdfghjklmwxcvbnAZERTYUIOPQSDFGHJKLMWXCVBN")!=string::npos) { 27 cout.width(30); 28 cout.setf(ios::left); 29 cout << i->first << i->second << '\n'; 30 } 31 } 32 33 } 34 ; 35