QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#58601#4413. Cyber Languageqinjianbin#AC ✓2ms3752kbC++17387b2022-10-27 09:04:592022-10-27 09:05:10

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-10-27 09:05:10]
  • 评测
  • 测评结果:AC
  • 用时:2ms
  • 内存:3752kb
  • [2022-10-27 09:04:59]
  • 提交

answer

#include<bits/stdc++.h>
#define rep(i, a, b) for(int i = (a); i < (b); i++) 
#define _for(i, a, b) for(int i = (a); i <= (b); i++) 
using namespace std;

int main()
{
	int T; scanf("%d", &T);
	while(T--)
	{
		string ans = "";
		string s;

		while(cin >> s)
		{
			ans += s[0] + 'A' - 'a';
			if(getchar() == '\n') break;
		}
		cout << ans << endl;
	}
	
	return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 3752kb

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