Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
37325 ☩Deutschland☩ 整理药名 C++ 通过 0 MS 252 KB 350 2024-01-20 10:47:24

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ int n; cin>>n; string s; for(int i=0;i<n;i++){ cin>>s; if(s[0]>='a'&&s[0]<='z') s[0]=s[0]-'a'+'A'; for(int i=1;i<s.length();i++) if(s[i]>='A'&&s[i]<='Z') s[i]=s[i]-'A'+'a'; for(int j=0;j<s.length();j++) cout<<s[j]; cout<<endl; } return 0; }


测评信息: