題目:
https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=399
1 2 3 4 5 6 7 8 9 10 11
| #include <bits/stdc++.h> using namespace std;
int main(){ string s; while(getline(cin, s)){ for(char &ch : s) ch += ('*' - '1'); cout << s << '\n'; } return 0; }
|