728x90
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.util.StringTokenizer; class Solution { private static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); private static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) throws IOException { StringTokenizer stk = new StringTokenizer(br.readLine()," "); int a = Integer.parseInt(stk.nextToken()); int b = Integer.parseInt(stk.nextToken()); System.out.println(a+b); System.out.println(a-b); System.out.println(a*b); System.out.println(a/b); } } | cs |
'알고리즘 풀이 > SWEA' 카테고리의 다른 글
[SWEA][JAVA] 1936. 1대1 가위바위보 (0) | 2021.06.15 |
---|---|
[SWEA][JAVA] 1933. 간단한 N 의 약수 (0) | 2021.06.15 |
[SWEA][JAVA] 11592. 크루즈 컨트롤 (0) | 2021.06.14 |
[SWEA][JAVA] 2025. N줄덧셈 (0) | 2021.06.14 |
[SWEA][JAVA] 2027. 대각선 출력하기 (0) | 2021.06.14 |