Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <sstream>
- #include <vector>
- #pragma GCC optimize ("O3")
- int main()
- {
- std::cout.sync_with_stdio(false);
- std::cin.sync_with_stdio(false);
- std::cin.tie(nullptr);
- std::ostringstream output;
- std::vector<bool> missing(26, true);
- std::string input;
- std::cin >> input;
- for (char ch : input)
- {
- missing[int(ch) - 97] = false;
- }
- for (int i = 0; i < 26; i++)
- {
- if (missing[i])
- {
- output << char(i + 97);
- }
- }
- std::cout << output.str() << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement