QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#49090 | #4413. Cyber Language | tuchi | AC ✓ | 3ms | 3684kb | C++ | 346b | 2022-09-19 14:29:33 | 2022-09-19 14:29:35 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
void solve(){
string str,s;
getline(cin,s);
stringstream ss; ss<<s;
while(ss>>str){
char ch=str.front();
ch-=('a'-'A');
cout<<ch;
}
cout<<endl;
}
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: 3ms
memory: 3684kb
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