lc display
채움늘
lc-display질문 내용에 넣겠습니다.질문 내용 :
lc-displaya friend of you has just bought a new computer. until now, the most powerful computer he ever used has been a pocket calculator. now, looking at his new computer, he is a bit disappointed, because he liked the lc-display of his calculator so much. so you decide to write a program that displays numbers in an lc-display-like style on his computer. input the input file contains several lines, one for each number to be displayed. each line contains two integers s, n ( ), where n is the number to be displayed and s is the size in which it shall be displayed. the input file will be terminated by a line containing two zeros. this line should not be processed. output output the numbers given in the input file in an lc-display-style using s ``-' signs for the horizontal segments and s ``|' signs for the vertical ones. each digit occupies exactly s+2 columns and 2s+3 rows. (be sure to fill all the white space occupied by the digits with blanks, also for the last digit.) there has to be exactly one column of blanks between two digits. output a blank line after each number. (you will find a sample of each digit in the sample output.) sample input pre2 123453 678900 0/presample output pre -- -- -- | | | | | | | | | | | | -- -- -- -- | | | | | | | | | | -- -- -- --- --- --- --- --- | | | | | | | || | | | | | | || | | | | | | | --- --- --- | | | | | | | || | | | | | | || | | | | | | | --- --- --- --- 잘 안보이시면 http://acm.uva.es/p/v7/706.html/prepre위의 링크로 들어가서 보시면 됩니다./pre
-
Soeun
번역 부탁합니다.
번호 | 제 목 | 글쓴이 | 날짜 |
---|---|---|---|
2695327 | 안녕하세요 제가 이번에 좀 큰 프로그램을.. | 악당 | 2025-05-19 |
2695295 | mutex동기화의 thread기반 채팅 서버소스 질문입니다 | 그루터기 | 2025-05-19 |
2695270 | 질문이요..swap 관한겁니다..ㅠㅠ (3) | 콩알녀 | 2025-05-19 |
2695244 | 노땅초보궁금한게 하나 있는데요..반복문(while문)초보자질문 (6) | 큰꽃늘 | 2025-05-18 |
2695166 | do while 문 어떤것이잘못된건지 모르겠어요 (2) | 아이폰 | 2025-05-18 |
2695122 | 구조체에 대해 물어보고 싶은게 있습니다 ^^^.. (7) | 수련 | 2025-05-17 |
2695091 | txt 파일 입출력 후 2차 배열에 저장하기입니다. (3) | 헛장사 | 2025-05-17 |
2695063 | 수도요금 프로그램좀 짜주세요. | 시내 | 2025-05-17 |
2695033 | 답변좀요ㅠㅠ (1) | 비사벌 | 2025-05-16 |
2695010 | C++의 STL은 왜 굳이 템플릿화 시켜서 라이브러리를 만드나요? (초보수준의 질문..) (2) | 엘보어 | 2025-05-16 |
2694958 | 로직이 변한다는 것에 대해서 궁금합니다. | 튼동 | 2025-05-16 |
2694929 | 열혈강의 25-2 두번째 문제 질문 | 지우개 | 2025-05-15 |
2694900 | dequeue 에서 리턴값 프린트 방법알려주세요 오늘 12시까지 대화방에 있습니다 도와주세요 | 미투리 | 2025-05-15 |
2694854 | 절대값을 구할때 (2) | 그녀는귀여웠다 | 2025-05-15 |
2694827 | 이제 어떻게 공부해야할지 모르겠네요 | 새얀 | 2025-05-14 |
2694778 | 순열 계산요. | 맛조이 | 2025-05-14 |
2694754 | ShowWindow 함수를 이용하려 하는데 질문있습니다. (2) | 파도 | 2025-05-14 |
2694731 | 리눅스 커널의 시작점 질문 | 미르 | 2025-05-13 |
2694702 | 이거 뭐가문제인가요 코드수정좀 (3) | 맑은 | 2025-05-13 |
2694675 | C언어 후위표기를 중위표기로 | 앨런 | 2025-05-13 |