#include<iostream> #include<vector> #include<algorithm> #include<string> #include<climits> using namespace std; int main() { string str; while (getline(cin, str)) { string temp = str; for (int i = 0; i < str.size(); i++) { if (str[i] >= 'a' && str[i] <= 'z') { str[i] -= 32; } } if (str.find("SALT") != str.npos) cout << temp << endl; } } |
Double click to view unformatted code.