ํ‹ฐ์Šคํ† ๋ฆฌ ๋ทฐ

๐Ÿ‘ฉ๐Ÿป‍๐Ÿ’ป ๋ฌธ์ œ

 

10171๋ฒˆ: ๊ณ ์–‘์ด

๋ฌธ์ œ ์•„๋ž˜ ์˜ˆ์ œ์™€ ๊ฐ™์ด ๊ณ ์–‘์ด๋ฅผ ์ถœ๋ ฅํ•˜์‹œ์˜ค. ์ž…๋ ฅ ์ถœ๋ ฅ ๊ณ ์–‘์ด๋ฅผ ์ถœ๋ ฅํ•œ๋‹ค. ์˜ˆ์ œ ์ž…๋ ฅ 1 ๋ณต์‚ฌ ์˜ˆ์ œ ์ถœ๋ ฅ 1 ๋ณต์‚ฌ \ /\ ) ( ') ( / ) \(__)|...

www.acmicpc.net


โœ๐Ÿป ํ’€์ด

๐ŸŽจ Go

package main

import (
	"fmt"
)

func main() {
	fmt.Println("\\    /\\")
	fmt.Println(" )  ( ')")
	fmt.Println("(  /  )")
	fmt.Println(" \\(__)|")
}

ํŠน์ˆ˜๋ฌธ์ž "\"๋ฅผ ์ถœ๋ ฅํ•˜๊ธฐ ์œ„ํ•˜์—ฌ escape ๋ฌธ์ž ํ™œ์šฉ, "\"์„ ์ถœ๋ ฅํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” print ํ•จ์ˆ˜ ์•ˆ์— "\\"์„ ์ ์–ด์ค˜์•ผ ํ•œ๋‹ค.

๐ŸŽจ Python3

print('\    /\\')
print(' )  ( \')')
print('(  /  )')
print(' \(__)|') 
728x90

'dev > algorithm' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

BOJ / 1001๋ฒˆ / A-B [Go] [Python3]  (0) 2020.03.13
BOJ / 1000๋ฒˆ / A+B [Go] [Python3]  (0) 2020.03.13
BOJ / 10172๋ฒˆ / ๊ฐœ [Go] [Python3]  (0) 2020.03.13
BOJ / 10718๋ฒˆ / We love kriii [Go] [Python3]  (0) 2020.03.13
BOJ / 2557๋ฒˆ / Hello World [Go] [Python3]  (0) 2020.03.12
๋Œ“๊ธ€