분류 전체보기

· 알고리즘
import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T; T=sc.nextInt(); sc.nextLine(); for(int test_case = 1; test_case 12 ){ System.out.println("#"+test_case + " -1"); continue; } in..
· 알고리즘
import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); String input; input=sc.next(); for (int i = 0; i
· 알고리즘
import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); String input; input=sc.next(); System.out.print(input.toUpperCase()); } }
· 알고리즘
import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int input; input=sc.nextInt(); String s = "#"; System.out.print(s.repeat(input)); } } s.repeat(input) 은 jdk8 에서 작동하지 않음 때문에 삼성 아카데미에서 원하는 답과는 다르다.import java.util.Scanner; class Solution { ..
· 알고리즘
import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int T; T=sc.nextInt(); for(int test_case = 1; test_case
· 알고리즘
import java.util.Scanner; class Solution { public static void main(String args[]) throws Exception { Scanner sc = new Scanner(System.in); int value; value=sc.nextInt(); int doubledouble = 1; System.out.print(doubledouble); for(int i = 0; i
WHITE_FROST
'분류 전체보기' 카테고리의 글 목록 (6 Page)