Created
May 2, 2019 18:03
-
-
Save Thiago4532/ce572200d5c8708db571838ad63c0673 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <set> | |
using namespace std; | |
int main(){ | |
set<string> conj; // Declaro o conjunto de pomekons. | |
int N; | |
cin >> N; | |
for(int i=0;i<N;i++){ | |
string a; | |
cin >> a; | |
conj.insert(a); // Inserindo o elemento a no conjunto caso ele ainda nao tenha sido inserido. | |
} | |
cout << "Falta(m) " << (151 - conj.size()) << " pomekon(s).\n"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment