QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#93898 | #4413. Cyber Language | Tobo# | TL | 0ms | 0kb | C++20 | 575b | 2023-04-03 19:33:37 | 2023-04-03 19:33:38 |
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();
}
详细
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