QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#93899 | #4413. Cyber Language | Tobo# | WA | 1ms | 3444kb | C++20 | 581b | 2023-04-03 19:35:33 | 2023-04-03 19:35:35 |
Judging History
answer
#include <bits/stdc++.h>
#define N 200005
using i64 = long long;
using namespace std;
void solve()
{
char c;
bool is = 1;
string ans;
while (1)
{
c = getchar();
if (c == '\n')
break;
if (is)
ans.push_back(char(c - 'a' + 'A'));
if (c == ' ')
is = 1;
else
is = 0;
}
cout << ans << '\n';
}
signed main()
{
// ios_base::sync_with_stdio(false);
// cin.tie(nullptr);
int t = 1;
cin >> t;
while (t--)
solve();
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3444kb
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
result:
wrong answer 1st lines differ - expected: 'QLXW', found: ''