Notice
Recent Posts
Recent Comments
Link
์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ํ๋ก๊ทธ๋๋จธ์ค ๋ฌธ์์ด ์์ถ
- ๊ตฌ๋ฆํค
- ๋ฆฌ์กํธ์ฟผ๋ฆฌ suspense
- ๋ฐฑ์ค 1339๋ฒ ์๋ฐ์คํฌ๋ฆฝํธ
- app router emotion
- ๊ตฌ๋ฆํค ์ฑ๋ฆฐ์ง ํ๊ณ
- ์ต์ ๋์ฒด์ด๋
- js ์ค์ฝํ
- ์๋ฐ์คํฌ๋ฆฝํธ ์ค์ฝํ
- js ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ
- next13 emotion
- emtion app router
- ์ฌ์ฉ์ฑ ๊ฐ์
- ํ๋ก๊ทธ๋๋จธ์ค ๊ฑฐ๋ฆฌ๋๊ธฐ ํ์ธํ๊ธฐ
- suspense ๋ณ๋ชฉํ์
- TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more:
- ๊ตฌ๋ฆํค ์ฑ๋ฆฐ์ง
- ๋ฐฑ์ค 1339๋ฒ nodejs
- js
- ๋ฐฑ์ค 2108 ์๋ฐ์คํฌ๋ฆฝํธ
- ์๋ฐ์คํฌ๋ฆฝํธ ๋ฌธ์์ด ์์ถ
- ๋ฐฑ์ค 1339๋ฒ js
- js ๋ฌธ์์ด ์์ถ
- suspense react-query
- ๋ฐฑ์ค 2108 nodejs
- suspense ๋์์๋ฆฌ
- emotion RSC
- ์ค์ฝํ
- ์นด์นด์ค ์ฝํ
- suspense ๋น๋๊ธฐ
Archives
- Today
- Total
Lennon FE
[๋ฐฑ์ค 3009๋ฒ] ๋ค ๋ฒ์งธ ์ - ์๋ฐ์คํฌ๋ฆฝํธ(nodejs) ๋ณธ๋ฌธ
๐ฅ Algorithm/Baekjoon
[๋ฐฑ์ค 3009๋ฒ] ๋ค ๋ฒ์งธ ์ - ์๋ฐ์คํฌ๋ฆฝํธ(nodejs)
Lennon 2022. 1. 25. 22:54728x90
๋ฐ์ํ
https://www.acmicpc.net/problem/3009
const fs = require('fs');
const input = fs
.readFileSync('dev/stdin')
.toString()
.trim()
.split('\n')
.map((v) => v.split(' '));
let x = input.map((v) => v[0]).sort((a, b) => a - b);
let y = input.map((v) => v[1]).sort((a, b) => a - b);
x = x[0] === x[1] ? x[2] : x[0];
y = y[0] === y[1] ? y[2] : y[0];
console.log(x, y);
๊ฐ ์ขํ๋ฅผ ์ ๋ ฌํ ํ
๊ฐ ์ขํ์ ์ฒซ ๋ฒ์งธ์ ๋ ๋ฒ์งธ๊ฐ ๊ฐ์ผ๋ฉด ์ธ ๋ฒ์งธ๋ก ์ ํด์ค๋ค.
728x90
๋ฐ์ํ
'๐ฅ Algorithm > Baekjoon' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค 10816๋ฒ] ์ซ์ ์นด๋2 - ์๋ฐ์คํฌ๋ฆฝํธ(nodejs) (0) | 2022.02.03 |
---|---|
[๋ฐฑ์ค 14719๋ฒ] ๋น๋ฌผ - ์๋ฐ์คํฌ๋ฆฝํธ(nodejs) (0) | 2022.01.28 |
[๋ฐฑ์ค 11047๋ฒ] ๋์ 0 - ์๋ฐ์คํฌ๋ฆฝํธ(nodejs) (0) | 2022.01.23 |
[๋ฐฑ์ค 1026๋ฒ] ๋ณด๋ฌผ - ์๋ฐ์คํฌ๋ฆฝํธ(nodejs) (0) | 2022.01.21 |
[๋ฐฑ์ค 11399๋ฒ] ATM - ์๋ฐ์คํฌ๋ฆฝํธ(nodejs) (0) | 2022.01.21 |
Comments