https://www.acmicpc.net/problem/33165
1. 아이디어
두 수의 곱을 구하는 간단한 문제이다.
2. 문제풀이
* 연산자로 곱셈을 수행한 후 출력했다.
3. 코드
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int T = Integer.parseInt(br.readLine());
int V = Integer.parseInt(br.readLine());
System.out.println(T * V);
}
}
4. 후기
'코딩테스트 준비 > 백준' 카테고리의 다른 글
[백준] 8979번 - 올림픽 [Java] (0) | 2025.02.18 |
---|---|
[백준] 20057번 - 마법사 상어와 토네이도 [Java] (2) | 2025.02.17 |
[백준] 13277번 - 큰 수 곱셈 [Java] (0) | 2025.02.17 |
[백준] 1966번 - 프린터 큐 [Java] (1) | 2025.02.15 |
[백준] 18110번 - solved.ac [Java] (0) | 2025.02.15 |