-
[python]백준 전북대학교 14624번알고리즘 문제풀이/백준(파이썬) 2023. 6. 3. 23:44
코드
import sys sys.stdin = open("14624.txt", "r") q=int(input()) if q%2==0: print("I LOVE CBNU") else: print("*"*q) print(" "*((q//2)-1),"*") for i in range(q//2): print(" "*((q//2)-1-i)+ "*" + " " * (1+i*2) + "*")
링크
https://www.acmicpc.net/problem/14624
'알고리즘 문제풀이 > 백준(파이썬)' 카테고리의 다른 글
[python]백준 민균이의 비밀번호 9933번 (0) 2023.06.05 [python]백준 자동완성 24883번 (0) 2023.06.04 [python]백준 Metronome 27389번 (0) 2023.06.02 [python]백준 문자가 몇갤까 7600번 (1) 2023.06.01 [python]백준 2의 제곱인가? 11966번 (0) 2023.05.31