본문 바로가기
JAVA/Coding Test Study

[Bronze V] 백준 - 2377. Pottery : FreeBASIC

by ♡˖GYURI˖♡ 2023. 12. 19.
728x90
 

2377번: Pottery

3D printing is becoming more and more prominent in today’s society. Unfortunately, you don’t currently have access to a 3D printer. Instead, you can just print an item with your knowledge of coding! Print a clay pot.

www.acmicpc.net

 

 

 

문제 : 3D printing is becoming more and more prominent in today’s society. Unfortunately, you don’t currently have access to a 3D printer. Instead, you can just print an item with your knowledge of coding! Print a clay pot.

출력 : Output the pot exactly as shown in the example output. There are no blank lines before or after the output, and there are no trailing spaces on any of the lines.

예제 : 

 _________
 \_     _/
   \   /
    | |
   /   \
  /     \
 |       |
/---------\
| \-/ \-/ |
\---------/
 \_______/

 

print " _________"
print " \_     _/"
print "   \   /"
print "    | |"
print "   /   \"
print "  /     \"
print " |       |"
print "/---------\"
print "| \-/ \-/ |"
print "\---------/"
print " \_______/"

 

 

FreeBASIC은 파이썬과 비슷한 문자열 출력문을 가지고 있다.

자동으로 개행이 되며 문법도 괄호의 유무 말고는 별 차이가 없다.

 

 


참고

 

FreeBASIC 기본 문법 - FreeBASIC 2

FreeBASIC 기본 문법 FreeBASIC을 시작하면서 알아야 할 기본 문법을 정리해봤습니다. freebasic 공식 온라인 문서를 참고합니다. 시작하기 전에 한가지 알아두면 좋은 것은 FreeBASIC은 QBasic 코드와 호환

digiconfactory.tistory.com