반응형 백준알고리즘35 백준 8393번 합 package algo; import java.util.Scanner; public class BJ2739 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int sum = 0; for(int i=0 ; i 2020. 3. 1. 백준 10950번 A+B - 3 package algo; import java.util.Scanner; public class BJ10950 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i=0; i 2020. 3. 1. 백준 10817번 세 수 package algo; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Scanner; public class BJ10817 { public static void main(String[] args) throws IOException { BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); String[] line = bf.readLine().split(" "); String a = line[0]; String b = line[1]; String c = line[2]; int a1.. 2020. 3. 1. 백준 2588번 곱셈 package algo; import java.util.Scanner; public class BJ2588 { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a= sc.nextInt(); // int b= sc.nextInt(); String b1 =Integer.toString(b); String one = b1.substring(2,3); //b의 첫 째 자리수 //System.out.println(one); int b11 = Integer.parseInt(one); String two = b1.substring(1,2); //b의 둘 째 자리수 int b22 = Integer.parseInt(two).. 2020. 3. 1. 이전 1 ··· 5 6 7 8 9 다음 반응형