QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#93899#4413. Cyber LanguageTobo#WA 1ms3444kbC++20581b2023-04-03 19:35:332023-04-03 19:35:35

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-04-03 19:35:35]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3444kb
  • [2023-04-03 19:35:33]
  • 提交

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: ''