관리 메뉴

솜씨좋은장씨

[BaekJoon] 26489번 : Gum Gum for Jay Jay (Python) 본문

Programming/코딩 1일 1문제

[BaekJoon] 26489번 : Gum Gum for Jay Jay (Python)

솜씨좋은장씨 2022. 12. 18. 23:21
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 Gum Gum for Jay Jay 입니다.

 

26489번: Gum Gum for Jay Jay

You are lost in the museum and keep walking by a giant rock head that says “gum gum for jay jay” each time you walk by. Print out the number of times you have walked by the giant rock head after reading in the data file.

www.acmicpc.net

👨🏻‍💻 코드 ( Solution )

def gum_gum_for_jay_jay():
    answer = 0
    
    while True:
        try:
            gum_gum = input()
            answer += 1
        except EOFError:
            break
    
    return answer


if __name__ == "__main__":
    print(gum_gum_for_jay_jay())
 

GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07

1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.

github.com

Comments