본문 바로가기

전체 글803

Ec.crew 3회차 정기 모임 문제 나경 - N, M = map(int, input().split(" ")) if M%4 == 0 : for i in range(int(M/4)): print(N*"#") print((N-1)*"."+"#") print(N*"#") print("#"+"."*(N-1)) elif M%4 == 1 : for i in range(int((M-1)/4)): print(N*"#") print((N-1)*"."+"#") print(N*"#") print("#"+"."*(N-1)) print(N*"#") elif M%4 == 2 : for i in range(int((M-2)/4)): print(N*"#") print((N-1)*"."+"#") print(N*"#") print("#"+"."*(N-1)) print(N*.. 2022. 7. 26.
Ec.crew 2회차 정기 모임 문제 1회차는 OT 스터디 모집글! 나경 jinMoney = int(input("첫날 진우의 돈:")) sonMoney = int(input("첫날 선우의 돈:")) WhenTime = int(input("몇 번째까지?:")) if WhenTime >= 2: if WhenTime%2==1: for i in range(int((WhenTime-1)/2)): sonMoney += round(jinMoney/2,1) jinMoney -= round(jinMoney/2,1) jinMoney += round(sonMoney/2,1) sonMoney -= round(sonMoney/2,1) sonMoney += round(jinMoney/2,1) jinMoney -= round(jinMoney/2,1) else: for.. 2022. 7. 26.
<HTML.CSS.JS> 숫자야구게임 HTML css가 섞여 있어 깔끔하지 않다. 하지만 각 항목에 위치 조정을 하고 싶어서 이렇게 하는 게 편했다. 그런데 이렇게 위치 조정하니까 그림 위에 고정되지 않고 사용자 액정 위치에 맞춰 조정된다. 다음에 그림 위에 요소 올리고 싶으면 다른 방법을 찾는 게 좋을 것 같다. GO! 플레이 설명 결과는, GOGO! 귀여운 CSS 그림 위에 글자 올리는 용도 !! 클래스 이름이랑 . 사이' 띄어쓰기' 절대 안 됨 !! 저번에 왜 안되는지 찾느라 힘들었다. .img{ position: relative; background-image: url(./image/base.png); height: 100vh; background-size: cover; } JS 핵심 자바스크립트이다. 제로초님의 강의를 들으며 만들었.. 2022. 7. 26.