백준 Moo

KIMYEONGJUN·2024년 10월 6일
post-thumbnail

문제

내가 생각했을때 문제에서 원하는부분

실제 대회에는 언어 제한이 없었다.
You’ve decided to buy a farm and start a new life. 
To pass some time while you wait for the title of the land to go through, produce the following ascii cow.

내가 이 문제를 보고 생각해본 부분

처음에 골프스크린이라는 언어를 처음 봐서 당황했지만, "" 안에 출력하고 싶은 내용을 작성하면 끝인 쉬운 문제였다.
나는 거기다가 더해서 내스스로 문제를 변경해서 풀어봤다.

코드로 구현

"(___)
(o o)____/
 @@      \\
  \\ ____,/
  //   //
 ^^   ^^"

java로 다시 구현해봤다.

package baekjoon.baekjoon_23;

// 백준 1809번 문제
public class Main799 {
    public static void main(String[] args) {
        System.out.println("(___)");
        System.out.println("(o o)____/");
        System.out.println(" @@      \\");
        System.out.println("  \\ ____,/");
        System.out.println("  //   //");
        System.out.println(" ^^   ^^");
    }
}

마무리

코드와 설명이 부족할수 있습니다. 코드를 보시고 문제가 있거나 코드 개선이 필요한 부분이 있다면 댓글로 말해주시면 감사한 마음으로 참고해 코드를 수정 하겠습니다.

profile
Junior backend developer

0개의 댓글