Run ID:124073
提交时间:2025-07-10 22:28:57
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))