QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#41026 | #4413. Cyber Language | L1ngYu | AC ✓ | 2ms | 3552kb | C++20 | 539b | 2022-07-27 13:30:46 | 2022-07-27 13:30:46 |
Judging History
answer
#include <bits/stdc++.h>
#define rep(i,a,b) for(int i=a;i<=b;++i)
#define per(i,a,b) for(int i=a;i>=b;--i)
#define forr(i,a) for(auto i:a)
#define rall(a) rbegin(a),rend(a)
#define all(a) begin(a),end(a)
#define pb emplace_back
using namespace std;
void solve()
{
string s; getline(cin, s);
stringstream in(s);
while (in >> s) cout << char(toupper(s.front()));
cout << '\n';
}
signed main()
{
cin.tie(0)->sync_with_stdio(0);
int _; for (cin >> _, cin.ignore(); _--; ) solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 2ms
memory: 3552kb
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 YYGQ
result:
ok 10 lines