QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#53443 | #4413. Cyber Language | neko_nyaa# | AC ✓ | 2ms | 3652kb | C++20 | 444b | 2022-10-05 11:08:51 | 2022-10-05 11:08:52 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define int long long
char toUpperCase(char c) {
c -= 'a';
c += 'A';
return c;
}
void solve() {
string s; getline(cin, s);
stringstream ss; ss << s;
string t;
while (ss >> t) {
cout << toUpperCase(t[0]);
}
cout << '\n';
}
signed main() {
ios::sync_with_stdio(0); cin.tie(0);
int t; cin >> t; cin.ignore();
while (t--) {
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 3652kb
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