Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
37161 王shizhao 整理药名 C++ Compile Error 0 MS 0 KB 291 2024-01-19 15:27:07

Tests(0/0):


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


Judgement Protocol: