// const input = require("fs").readFileSync("/dev/stdin").toString().trim().split(" ");
const input = "734 893".toString().trim().split(" ");
function getConst(input) {
let input1 = input[0].split("").reverse().join("");
let input2 = input[1].split("").reverse().join("");
console.log(input1 > input2 ? input1 : input2);
}
getConst(input);
'BAEKJOON > JavaScript' 카테고리의 다른 글
[BAEKJOON] 팰린드롬수 (1259번) (0) | 2022.03.29 |
---|---|
[BAEKJOON] 평균 (1546번) (0) | 2022.03.28 |
[BAEKJOON] 나머지 (3052번) (0) | 2022.03.21 |
[BAEKJOON] A+B -2 (2558번) (0) | 2022.03.20 |
[BAEKJOON] 더하기 사이클 (1110번) (0) | 2022.03.19 |