Run ID:163623

提交时间:2026-10-27 14:04:41

def generate_acronym(phrase): words = phrase.split() return ''.join([word[0].upper() for word in words]) T = int(input()) for _ in range(T): phrase = input().strip() print(generate_acronym(phrase))