QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#597820#4413. Cyber Languagehuaxiamengjin#AC ✓0ms3488kbC++14294b2024-09-28 19:00:062024-09-28 19:00:08

Judging History

你现在查看的是最新测评结果

  • [2024-09-28 19:00:08]
  • 评测
  • 测评结果:AC
  • 用时:0ms
  • 内存:3488kb
  • [2024-09-28 19:00:06]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
string s;
void solve(){
//	getchar();
	getline(cin,s);
	cout<<(char)(s[0]-'a'+'A');
	for (int i=1;i<s.size();i++)
	if(s[i]==' ')cout<<(char)(s[i+1]-'a'+'A');
	cout<<"\n";
}
int main(){
	int T;cin>>T;
	getchar();
	while(T--)solve();
} 

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3488kb

input:

10
qing lian xi wo
bao gao
wo dai ni men da
da shi suo qu
bao dao
yong yuan de shen
xiao si wo le
shi zhen de
ni shuo de dou dui
yin yang guai qi

output:

QLXW
BG
WDNMD
DSSQ
BD
YYDS
XSWL
SZD
NSDDD
YYGQ

result:

ok 10 lines