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(&#39;fs&#39;); const path = process.platform === &#39;linux&#39; ? &#39;/dev/stdin&#39; : &#39;./data.txt&#39;; 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 - ๊ธฐ๋ณธ ์œ„์น˜์— ๋Œ€ํ•ด์„œ ์ƒ๋Œ€์ ์ธ ์œ„์น˜(์ฆ‰, ๊ธฐ๋ณธ ์œ„์น˜์— ๋Œ€ํ•œ &#39;๊ณต๊ฐ„&#39;์€ ์ฐจ์ง€ํ•˜๊ณ  ์žˆ์Œ) - static์— ํ•ด๋‹นํ•˜๋Š” ์œ„์น˜์—์„œ ๊ฐ ๋ฐฉํ–ฅ์— ๋Œ€ํ•ด ์–ผ๋งŒํผ ์ด๋™ํ• ์ง€ ์„ค์ • - ๊ธฐ๋ณธ ๋ฌธ์„œ ํ๋ฆ„์—์„œ ๋ฒ—์–ด๋‚˜์ง€ ์•Š๋Š”๋‹ค.3. absolute - ๋ง ๊ทธ๋Œ€๋กœ ์ ˆ๋Œ€์ ์ธ ์œ„์น˜๋กœ, ํŽ˜์ด์ง€ ๋ ˆ์ด์•„์›ƒ์— ๊ณต๊ฐ„์„ ๋ฐฐ์ •ํ•˜์ง€๋„ ์•Š๋Š”๋‹ค. - ๊ฐ€์žฅ ๊ฐ€๊นŒ์šด ์œ„์น˜ ์ง€์ • ๋ถ€๋ชจ ์š”์†Œ์— ๋Œ€ํ•ด ์ƒ๋Œ€์ ์ธ ์œ„์น˜๋กœ ์„ค์ • - ๋‹จ, ๋ถ€๋ชจ ์š”์†Œ ์ค‘ ์œ„์น˜ ์ง€์ • ์š”์†Œ๊ฐ€ ์—†๋‹ค๋ฉด(static๋งŒ ์žˆ๋‹ค๋ฉด) ์ดˆ๊ธฐ ์ปจํ…Œ์ด๋‹ ๋ธ”๋ก์„ ๊ธฐ์ค€์œผ๋กœ ๋ฐฐ์น˜ - ๊ธฐ๋ณธ ๋ฌธ์„œ ํ๋ฆ„์—์„œ ..

    [JS] 10250

    const fs = require(&#39;fs&#39;); const path = process.platform === &#39;linux&#39; ? &#39;/dev/stdin&#39; : &#39;./data.txt&#39;; const input = fs.readFileSync(path).toString().trim().split(&#39;\n&#39;); 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..