Jayden`s
[JS] 2751
const fs = require('fs'); const path = process.platform === 'linux' ? '/dev/stdin' : './data.txt'; const input = fs .readFileSync(path) .toString() .trim() .split('\n') .map((x) => parseInt(x)); const solve = (input) => { const count = input.shift(); input.sort((a, b) => a - b); console.log(input.join('\n')); }; solve(input); ๋ฐฑ์ค ํ์ด... ๋ฐฑ์ค ๋ฌธ์ ํ๊ธฐ ์ ์ ์งง..
220614(ํ) ๋ฉ์ด ๋จธ์คํฌ
ํ ์ฌ๋์ ์ข์ ์ ๋ง ๋จ์ ์ผ๋ก ๋๋ฌ๋ ์ ๋ฐ์ ์๋ ๊ธฐ์ฌ์ด์ง๋ง, ์ฐธ ๋ฉ์๋ ์ฌ๋๊ฐ๋ค.(์ด ๊ธฐ์ฌ์ ๋ด์ฉ ํ์ ) ์ฑ๋ณ, ๊ตญ์ , ๋ฐฐ๊ฒฝ ๋ฑ ๋ค ๋ ๋์ ๋์ด 74์ธ์๋ ์ด๋ ๊ฒ ํ๋ฐํ๊ฒ ์ด์๊ฐ๋ ๊ฒ ๊ทธ ์์ฒด๊ฐ ๋ฉ์๋ค. ์์ผ๋ก ๊ธฐ๋ ์๋ช ์ด ๋ ๋์ด๋๋๋งํผ, ์ง๊ธ ์ด ์๊ธฐ๋ฅผ ์ ๋ค๋ ๋์ผ๊ฒ ๋ค :)
[JS] 2750
const fs = require('fs'); const path = process.platform === 'linux' ? '/dev/stdin' : './data.txt'; const input = fs .readFileSync(path) .toString() .trim() .split('\n') .map((number) => parseInt(number)); const solve = (input) => { const count = input.shift(); const arr = input; const ans = input.sort((a, b) => a - b); for (let i = 0; i < ans.length; i++) { console.log(ans[i]); } }; solve(input)..
220613(์) 1๋ ์ 2๋ฐฐ์ค๋ฅธ ๋ฏธ๊ตญ ํ๋ฐ์ ๊ฐ
๋ ์ด ๋์๋งํผ ์๊ฐ์ฉ ์์ฒด์ ์ด๋์ด ๋ง์ ๋ฏธ๊ตญ ์ฐ๋ฆฌ๋๋ผ ์ ๊ฐ๋ ์ ๊ฐ์ง๋ง, ๋ฏธ๊ตญ์ ๊ฒฝ์ฐ ํจ์ฌ ๋ ์ ๊ฐ์์น์ด ์ฒด๊ฐ๋ ๊ฒ ๊ฐ๋ค. ๊ทธ์ ๋ฐ๋ผ ์์ฐ์ค๋ฝ๊ฒ ์๋นํ๋๋ ์์ถ๋๊ณ ..! ๊ฐ์ธ์ ์ผ๋ก ์ง๊ธ ํ์ฌ์ ์ํฉ(๋ฌผ๊ฐ ์์น, ๊ตญ์ ์ ๊ฐ ์์น ๋ฑ)๋ค์ด ์ค๋ ๊ฐ ๊ฒ ๊ฐ์ง ์์๋๋ฐ ์ ๋ง ์ฅ๊ธฐ๊ฐ ์ด์ด์ง ์๋ ์๊ฒ ๋ค ์ถ์ด ๊ฒ์ด ๋๊ธฐ๋ ํ๋ค. ์ด๋ด์๋ก ๋งค์ผ๋งค์ผ ์ ๋ฌธ์ ๋ณด๋ฉด์ ์ธ์์ ํ๋ฆ์ ๋ณด๋๋ก ํ์. :)
220611(ํ ) ์ธํฐ๋ท ์ต์คํ๋ก๋ฌ
์ฐ๋ฆฌ๋๋ผ ๊ณต๊ณต๊ธฐ๊ด์ ์ ๋๋ผํ ํ๊ณ IT ๊ฐ๊ตญ์ด๋ผ๊ณ ๋ง์ ํ์ง๋ง, ์ฌ์ ํ ๊ฐ ๊ธธ์ด ๋จผ ๊ฒ ๊ฐ๋ค. ์น ํธํ์ฑ ํ๋ณด๋ ๋์ด์์ง ์๊ณ , ์ด๋ฅผ ๊ฐ์ ํ๋ ค๋ ๊ฒ๋ ์๋๊ณ ์ฃ์ง์ IE ๋ชจ๋๋ฅผ ์ฌ์ฉํ๋ผ๋...