Club383 Ec.crew 4회차 정기 모임 문제 솔민 name = True while (name): n = input() if n == '#': name = False else: n = list(n) n.reverse() result = ' '.join(map(str, n)) print(result) 은솜 - newList =[] # newList =list()도 마즘~ for i in range(10): N = int(input()) newList.append(N%42) # 맨 처음에 newList += (N%42)라고 썼다가..ㅎㅎ 안 된다 # 근데 newList += str(N%42)라고 하면 따옴표 넣어서 들어간다 # 근데 newList += int(N%42)는 숫자형이라서 안 된대 # 근데 newList.append(N%42)로 하면 리스트 .. 2022. 7. 26. 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. 이전 1 ··· 36 37 38 39 다음