슈콩

[SWEA] 두문자어 본문

Algorithms/SWEA

[SWEA] 두문자어

shukong 2025. 11. 17. 18:08

 

 

[문제]

https://swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AW2y6n3qPXQDFATy

 

SW Expert Academy

SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!

swexpertacademy.com

 

 

 

[소스 코드]

import java.io.*;
import java.util.*;
public class Solution {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int T = Integer.parseInt(br.readLine());
		for(int tc=1;tc<=T;tc++) {
			String[] s = br.readLine().split(" ");
			String result = "";
			for(int i=0;i<s.length;i++) {
				result += s[i].substring(0,1).toUpperCase();
			}
			System.out.println("#"+tc+" "+result);
		}
	}
}

'Algorithms > SWEA' 카테고리의 다른 글

[SWEA] 8일차 - 암호문2  (0) 2025.11.17
[SWEA] 영준이와 신비한 뿔의 숲  (0) 2025.11.17
[SWEA] 시험  (0) 2025.11.17
[SWEA] 장애물 경주 난이도  (0) 2025.11.17
[SWEA] 문제 제목 붙이기  (0) 2025.11.17