Strings

  • + 0 comments
    #include <cmath>
    #include <cstdio>
    #include <vector>
    #include <iostream>
    #include <algorithm>
    using namespace std;
    
    
    int main() {
        string a, b, c{};
        cin >> a >> b;
        cout << a.size() << " " << b.size() << endl;
        cout << a + b << endl;
    
    
        for (double i = a.size(); i <= a.size(); ++i)
        {
            char temp = a[0];
            a[0] = b[0];
            b[0] = temp;
    
            cout << a << string(1, ' ') << b;
        }
    
    
        return 0;
    }