[swexpert] 2047. 신문 헤드라인 (D1, python, java)

728x90
반응형

1. 파이썬 풀이 

s=input()
 
converted=[x.upper() for x in s]
print(''.join(converted))

 

2. 자바 풀이 

 

import java.util.Scanner;

public class Solution {

	public static void main(String[] args) {
		
		Scanner sc=new Scanner(System.in);
		String s=sc.next();
		System.out.println(s.toUpperCase());
		sc.close();
	}
	
	
}
	


728x90
반응형
TAGS.

Comments