QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#597820 | #4413. Cyber Language | huaxiamengjin# | AC ✓ | 0ms | 3488kb | C++14 | 294b | 2024-09-28 19:00:06 | 2024-09-28 19:00:08 |
Judging History
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