#include<bits/stdc++.h> using namespace std; string s; int a; int main(){ cin>>a; for(int i = 0;i<a;i++){ cin>>s; if(s[0]>='a'&&s[0]<='z') s[0]-=32; for(int j=1;j<(int)s.size();j++){ if(s[j]>='A'&&s[j]<='Z') s[j]+=32; } cout<<s<<endl; } return 0; }
註冊一個 YZOJ 通用賬戶,您就可以在我們提供的所有線上評測服務上提交程式碼、參與討論。
使用您的 YZOJ 通用賬戶