# [Algorithm/JS] ๋ฐฑ์ค€ 10171๋ฒˆ ๊ณ ์–‘์ด

๐Ÿ”— ๋ฌธ์ œ ๋ฐ”๋กœ๊ฐ€๊ธฐ (opens new window)

# Question

์•„๋ž˜ ์˜ˆ์ œ์™€ ๊ฐ™์ด ๊ณ ์–‘์ด๋ฅผ ์ถœ๋ ฅํ•˜์‹œ์˜ค.

# Input

์ž…๋ ฅ ์—†์Œ

# Output

๊ณ ์–‘์ด๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค.

# Example Input

์ž…๋ ฅ ์—†์Œ

# Example Output

\    /\
 )  ( ')
(  /  )
 \(__)|
1
2
3
4

# Solution

console.log(`\\    /\\\n )  ( \')\n(  /  )\n \\(__)|`);
1

๋ฐฑํ‹ฑ(`)์„ ์‚ฌ์šฉํ•ด ์ถœ๋ ฅํ–ˆ๋‹ค.

# ๋ฐฑ์Šฌ๋ž˜์‹œ ์‚ฌ์šฉ ์ถœ๋ ฅ ๋ฌธ๋ฒ•

\\ : ์—ญ์Šฌ๋ž˜์‹œ ๋‘๋ฒˆ์€ \ ์—ญ์Šฌ๋ž˜์‹œ๋ฅผ ํ•œ๋ฒˆ์„ ์ถœ๋ ฅ
\n : ์ค„๋ฐ”๊ฟˆ
\' : ์ž‘์€ ๋”ฐ์˜ดํ‘œ

Last Updated: 2022. 6. 5. ์˜คํ›„ 3:42:39