공부/프로그래머스
두 수의 연산값 비교하기
딸기버블티
2024. 1. 23. 15:17

class Solution {
public int solution(int a, int b) {
int plus = Integer.parseInt("" + a + b);
int gob = 2 * a * b;
return plus >= gob ? plus : gob;
}
}