思路: 用string输入 (水题)
#include<iostream>
#include<cstdio>
#include<string>
using namespace std;
int main()
{
int T,t=0;
scanf("%d",&T);
while(T--){
string a,b;
cin>>a>>b;
printf("Case #%d:\n",++t);
if(a==b){
cout<<1<<endl;
cout<<a<<" "<<b<<endl;
}
else{
cout<<2<<endl;
cout<<a<<" "<<b<<endl;
cout<<b<<" "<<a<<endl;
}
}
return 0;
}