题目链接:HDU 2026 首字母变大写
HDU 2026	首字母变大写

#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<string>
#include<cstring>

using namespace std;
typedef long long ll;
const int maxn = 10010;
const int INF = 0x3f3f3f3f;
int a[maxn];

int main()
{
	string s;
	while(getline(cin,s))
	{
		for(int i=0;i<s.length();i++)
			if( i==0||s[i-1]==' ')
				s[i] -= 32;
		
		cout<<s<<endl;
	} 
	return 0;
}


相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2021-10-01
  • 2022-12-23
猜你喜欢
  • 2021-10-18
  • 2022-12-23
  • 2021-05-30
  • 2022-02-18
  • 2021-05-24
  • 2021-08-07
  • 2021-09-14
相关资源
相似解决方案