Advertisement
STANAANDREY

progRom

Nov 19th, 2019
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #include <locale.h>
  3. #include <windows.h>
  4. using namespace std;
  5. ifstream fin("text.in");
  6. const static unsigned code = 65001;
  7. set <string> ss;
  8.  
  9. int main()
  10. {
  11.     setlocale(LC_ALL, "ro");
  12.     SetConsoleOutputCP(code);
  13.     string s;
  14.     while (fin >> s)
  15.     ss.insert(s);
  16.  
  17.     cout << ss.size();
  18.     return 0;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement