Run ID 作者 问题 语言 测评结果 时间 内存 代码长度 提交时间
80168 sh25_zhuwy 整理药名 C++ 通过 0 MS 252 KB 362 2026-01-04 15:05:00

Tests(1/1):


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


测评信息: