import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int c = sc.nextInt();
int b_square = c*c - a*a;
System.out.println(b_square);
}
}
'코딩테스트 > lv0' 카테고리의 다른 글
[프로그래머스 코딩테스트] java Lv.0 대소문자 바꿔서 출력하기 (0) | 2024.07.05 |
---|---|
[프로그래머스 코딩테스트] java Lv.0 출력 (PCCE 기출 문제 1번) (0) | 2024.06.26 |
[프로그래머스 코딩테스트] java Lv.0 나이 계산 (PCCE 기출 문제 3번) (0) | 2024.06.26 |
[프로그래머스 코딩테스트] java Lv.0 저축 (PCCE 기출 문제 4번) (0) | 2024.06.26 |
[프로그래머스 코딩테스트] java Lv.0 산책 (PCCE 기출문제 5번) (0) | 2024.06.26 |