QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#49656 | #4413. Cyber Language | lqhsmash | AC ✓ | 3ms | 3756kb | C++11 | 769b | 2022-09-22 10:51:14 | 2022-09-22 10:51:15 |
Judging History
answer
#include <bits/stdc++.h>
#define ll long long
using namespace std;
const int N = 2e5 + 50;
char s[N];
int main() {
#ifdef LOCAL
clock_t c1 = clock();
freopen("in.in", "r", stdin);
freopen("out.out", "w", stdout);
#endif
// ===================================================
int T;
scanf ("%d", &T);
getchar ();
while (T --) {
gets (s);
printf("%c", *s - 'a' + 'A');
for (int i = 1; s[i]; i ++) {
if (s[i - 1] == ' ')
printf("%c", s[i] - 'a' + 'A');
}
printf("\n");
}
// ===================================================
#ifdef LOCAL
cerr << "Time Used: " << clock() - c1 << "ms" << endl;
#endif
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 3ms
memory: 3756kb
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