80分第四个测试点没过求助大佬
查看原帖
80分第四个测试点没过求助大佬
1110851
shanyisang楼主2023/11/16 19:12
#include<bits/stdc++.h>
using namespace std;
int n;
char s[105];
int main()
{
	cin>>s;
	n=strlen(s);
	for(int i=0;i<n;i++)
	{
	 if(int(s[i])>97||int(s[i]==97)&&int(s[i])<123)
		{
			s[i]=char(s[i]-32);
		}
	}
	for(int i=0;i<n;i++)
	{
		cout<<s[i];
	}
	return 0;
}
2023/11/16 19:12
加载中...