QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#93898#4413. Cyber LanguageTobo#TL 0ms0kbC++20575b2023-04-03 19:33:372023-04-03 19:33:38

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:33:38]
  • 评测
  • 测评结果:TL
  • 用时:0ms
  • 内存:0kb
  • [2023-04-03 19:33:37]
  • 提交

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();
}

详细

Test #1:

score: 0
Time Limit Exceeded

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:


result: