Untitled
unknown
plain_text
a year ago
401 B
1
Indexable
Never
#include <iostream> #include <string> using namespace std; int main() { setlocale(LC_ALL, "russian"); string n; cin >> n; for (int i = 0; i < n.length(); i++) { if (n[i] == '.') { n[i] = 'a'; } if (n[i] == '-') { n[i] = '+'; } } cout << n + " " << n.length() << endl; }