简答题 偏难
#23028

# include <iostream> # include <string> using namespace std ; int main ( ) { str…

#include <iostream>
#include <string>
using namespace std;

int main()
{
	string st;
	int i, len;
	getline(cin, st);
	len = st.size();
	for (i = 0; i < len; i++){
		if (st[i] >= 'a' && st[i] <= 'z')
			st[i] = st[i] - 'a' + 'A';
	}
	cout << st << endl;
	return 0;
}

输入: Hello, my name is Lostmonkey.

输出:                                                     

未登录也能判分,登录后才会记录
答案与解析
正确答案:<div> <p>HELLO, MY NAME IS LOSTMONKEY.</p></div>
这道题暂未补解析。