Jayden`s
[JS] 10757
const fs = require('fs'); const path = process.platform === 'linux' ? '/dev/stdin' : './data.txt'; const input = fs.readFileSync(path).toString().trim().split(' '); function solve(input) { let [A, B] = input.map((x) => BigInt(x)); return String(A + B); } console.log(solve(input)); ๋ฐฑ์ค ์ซ์๊ฐ ๋๋ฌด ํด ๋, ์ ํ์ด ์๋ค๋ ๊ฒ ex) 9223372036854775807์ ๊ฒฝ์ฐ 9223372036854776000์ผ๋ก ๋..
[JS] 2839
const fs = require('fs'); const path = process.platform === 'linux' ? '/dev/stdin' : './data.txt'; const input = Number(fs.readFileSync(path).toString().trim()); function solve(input) { let count = 0; if (input === 3) { return 1; } if (input < 5 || input === 7) { return -1; } for (let i = 0; i * 3 input) { console.log(-1); break; } count++; input -= 3; } ๋ค๋ฅธ ํ์ด
[JS] 2775
// 2 // 1 // 3 // 2 // 3 // ์ธต์ 0์ธต๋ถํฐ, ํธ์๋ 1ํธ๋ถํฐ const fs = require('fs'); const path = process.platform === 'linux' ? '/dev/stdin' : './data.txt'; const input = fs .readFileSync(path) .toString() .trim() .split('\n') .map((x) => Number(x)); function solve(input) { const caseCount = input.shift(); for (let i = 0; i < caseCount; i++) { let kFloor = input.shift(); let nHosu = input.shift() - 1; // 1ํธ..
[CSS] Position๊ณผ Display
Position 1. static(default) - ๊ฐ์ฅ ๊ธฐ๋ณธ ์์น - top, bottom, left, right ๋ฑ์ ์ฌ์ฉํ ์ ์๋ค. - ๊ธฐ๋ณธ ๋ฌธ์ ํ๋ฆ์์ ๋ฒ์ด๋์ง ์๋๋ค.2. relative - ๊ธฐ๋ณธ ์์น์ ๋ํด์ ์๋์ ์ธ ์์น(์ฆ, ๊ธฐ๋ณธ ์์น์ ๋ํ '๊ณต๊ฐ'์ ์ฐจ์งํ๊ณ ์์) - static์ ํด๋นํ๋ ์์น์์ ๊ฐ ๋ฐฉํฅ์ ๋ํด ์ผ๋งํผ ์ด๋ํ ์ง ์ค์ - ๊ธฐ๋ณธ ๋ฌธ์ ํ๋ฆ์์ ๋ฒ์ด๋์ง ์๋๋ค.3. absolute - ๋ง ๊ทธ๋๋ก ์ ๋์ ์ธ ์์น๋ก, ํ์ด์ง ๋ ์ด์์์ ๊ณต๊ฐ์ ๋ฐฐ์ ํ์ง๋ ์๋๋ค. - ๊ฐ์ฅ ๊ฐ๊น์ด ์์น ์ง์ ๋ถ๋ชจ ์์์ ๋ํด ์๋์ ์ธ ์์น๋ก ์ค์ - ๋จ, ๋ถ๋ชจ ์์ ์ค ์์น ์ง์ ์์๊ฐ ์๋ค๋ฉด(static๋ง ์๋ค๋ฉด) ์ด๊ธฐ ์ปจํ ์ด๋ ๋ธ๋ก์ ๊ธฐ์ค์ผ๋ก ๋ฐฐ์น - ๊ธฐ๋ณธ ๋ฌธ์ ํ๋ฆ์์ ..
[JS] 10250
const fs = require('fs'); const path = process.platform === 'linux' ? '/dev/stdin' : './data.txt'; const input = fs.readFileSync(path).toString().trim().split('\n'); function solve(input) { let caseCount = Number(input[0]); for (i = 1; i Number(x)); let floor = 0; if (N % H === 0) { floor = H; } else { floor = N % H; } let ho = Math.ceil(N / H); if (ho < 1..