no image
[SW Expert Academy] 2050. 알파벳을 숫자로 변환 --java
풀이) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); String s = sc.next(); s = s.toUpperCase(); for(int i=0; i
2024.03.12
no image
[SW Expert Academy] 2019. 더블더블 --java
풀이) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); int idx = 1; System.out.print("1 "); for(int i=0; i
2024.03.12
no image
[SW Expert Academy] 1545. 거꾸로 출력해 보아요 --java
풀이) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int i=T; i>=0; i--){ System.out.print(i+ " "); } } }
2024.03.12
no image
[SW Expert Academy] 2029. 몫과 나머지 출력하기 --java
풀이) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T = sc.nextInt(); for(int i=1; i
2024.03.12
no image
[SW Expert Academy] 2027. 대각선 출력하기 --java
풀이1) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { System.out.println("#++++"); System.out.println("+#+++"); System.out.println("++#++"); System.out.println("+++#+"); System.out.println("++++#"); } } 풀이2) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String ..
2024.03.12
no image
[SW Expert Academy] 2043. 서랍의 비밀번호 --java
풀이) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int p = sc.nextInt(); int k = sc.nextInt(); int ans = p-k+1; System.out.println(ans); } }
2024.03.12
no image
[SW Expert Academy] 2025. N줄덧셈 --java
풀이) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int ans = 0; for(int i=1; i
2024.03.12
no image
[SW Expert Academy] 2046. 스탬프 찍기 --java
풀이) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i=0; i
2024.03.12
no image
[SW Expert Academy] 2047. 신문 헤드라인 --java
풀이) import java.util.Scanner; import java.io.FileInputStream; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); String headline = sc.next(); headline = headline.toUpperCase(); System.out.println(headline); } }
2024.03.12