Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
370 B
0
Indexable
Never
#include <iostream>
#include <string>

using namespace std;

int main()
{
    string a;
    int count = 0;

    cin >> a;
    
    for (int i = 0; i < a.length(); i++) {
        if (a[i] == '.') {
            a[i] = a[i] = 'a';
        }
        if (a[i] == '-') {
            a[i] = a[i] = '+';
        }
    }
    cout << a.length() << " " << a;
}