728x90
let input = require('fs').readFileSync('/dev/stdin').toString().split(" ").map(Number);
const num1 = input[0];
const num2 = input[1];
const num3 = input[2];
if (num1 === num2 && num2 === num3) {
console.log(10000 + num1 * 1000)
} else if (num1 === num2 || num1 === num3) {
console.log(1000 + num1 * 100);
} else if (num2 === num3) {
console.log(1000 + num2 * 100);
} else {
if (num1 > num2) {
num1 > num3 ? console.log(num1 * 100) : console.log(num3 * 100);
} else {
num2 > num3 ? console.log(num2 * 100) : console.log(num3 * 100);
}
}
๐ฑ ์กฐ๊ฑด์ ์๊ฑฐํด๊ฐ๋ ๋ฐฉ์์ผ๋ก ํ์๋ค.
์กฐ๊ฑด๋ฌธ ๋!
728x90
๋ฐ์ํ
'ํ์ ๊ณต๋ถ > ๐ซง ์๊ณ ๋ฆฌ์ฆ ๊ณต๋ถ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค/Node.js] 10950๋ฒ ํ์ด || JavaScript (0) | 2023.02.23 |
---|---|
[๋ฐฑ์ค/Node.js] 2739๋ฒ ํ์ด || JavaScript (0) | 2023.02.23 |
[๋ฐฑ์ค/Node.js] 2525๋ฒ ํ์ด || JavaScript (0) | 2023.02.22 |
[๋ฐฑ์ค/Node.js] 2884๋ฒ ํ์ด || JavaScript (0) | 2023.02.22 |
[๋ฐฑ์ค/Node.js] 11382๋ฒ ํ์ด || JavaScript (0) | 2023.02.21 |