📅  最后修改于: 2022-03-11 14:44:45.949000             🧑  作者: Mango
#include
using namespace std;
int
main ()
{
string s1, s2;
cin >> s1 >> s2;
cout << s1.size () << " " << s2.size () << endl;
cout << s1 << s2 << endl;
char temp;
temp = s1[0];
s1[0] = s2[0];
s2[0] = temp;
cout << s1 << " " << s2 << endl;
}