1 solutions
-
0
C++ :
#include <iostream> #include <string> #include <cctype> using namespace std; int main() { int n; string s; cin >> n >> s; for (int i = 0; i < n; i++) { if (islower(s[i])) { s[i] = toupper(s[i]); } else if (isupper(s[i])) { s[i] = tolower(s[i]); } else if (isdigit(s[i])) { s[i] = '*'; } } cout << s << endl; return 0; }
- 1
Information
- ID
- 132
- Time
- 1000ms
- Memory
- 128MiB
- Difficulty
- 10
- Tags
- # Submissions
- 1
- Accepted
- 1
- Uploaded By