Skip to content

Instantly share code, notes, and snippets.

@Thiago4532
Created May 2, 2019 18:03
Show Gist options
  • Save Thiago4532/ce572200d5c8708db571838ad63c0673 to your computer and use it in GitHub Desktop.
Save Thiago4532/ce572200d5c8708db571838ad63c0673 to your computer and use it in GitHub Desktop.
#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