QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#91922 | #4413. Cyber Language | WTR2007 | WA | 2ms | 3468kb | C++20 | 800b | 2023-03-29 22:06:57 | 2023-03-29 22:07:01 |
Judging History
answer
#include<bits/stdc++.h>
#define MULT_TEST 1
using namespace std;
typedef unsigned long long ull;
const int INF = 0x3f3f3f3f;
const int MOD = 998244353;
const int N = 55;
char s[N];
inline int read() {
int w = 0, f = 1;
char ch = getchar();
while (ch < '0' || ch > '9') {
if(ch == '-') f = -1;
ch = getchar();
}
while (ch >= '0' && ch <= '9') {
w = (w << 1) + (w << 3) + ch - 48;
ch = getchar();
}
return w * f;
}
inline void Solve() {
cin.getline(s, 50);
for (int i = 0; i < 50; i++)
if (i == 0 || (s[i - 1] == ' ' && s[i] != ' ')) printf("%c", s[i] - 'a' + 'A');
puts("");
}
signed main() {
int T = 1;
#if MULT_TEST
T = read();
#endif
while (T--) Solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 2ms
memory: 3468kb
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 BGXW WDNMD DSSQ BDQ YYDS XSWL SZD NSDDD YYGQ
result:
wrong answer 2nd lines differ - expected: 'BG', found: 'BGXW'