Goorm
-
[구름톤 챌린지] 2주차 8.통증코딩 챌린지 2023. 8. 23. 23:01
N = int(input()) numOfItems = 0 while N >= 14*pow(10, 6): N -= 14*pow(10, 6) numOfItems += 1*pow(10, 6) while N >= 14*pow(10, 5): N -= 14*pow(10, 5) numOfItems += 1*pow(10, 5) while N >= 14*pow(10, 4): N -= 14*pow(10, 4) numOfItems += 1*pow(10, 4) while N >= 14*pow(10, 3): N -= 14*pow(10, 3) numOfItems += 1*pow(10, 3) while N >= 14*pow(10, 2): N -= 14*pow(10, 2) numOfItems += 1*pow(10, 2) while ..
-
[구름톤 챌린지] Day4 완벽한 햄버거 만들기코딩 챌린지 2023. 8. 18. 20:12
# -*- coding: utf-8 -*- # UTF-8 encoding when using korean N = int(input()) k = list(map(int, input().split())) isPerfect = True if k[0] == max(k): for i in range(N-1): if k[i] k[i + 1]: isPerfect = False else: for i in range(N-1): if i k[i+1]: isPerfect = False else: if k[i] < k[i+1]:..
-
[구름톤 챌린지] 1주차 Day3 합 계산기코딩 챌린지 2023. 8. 17. 19:58
처음으로 해설지를 보지 않고 풀어본 문제라 좀 기뻐서 포스팅하고 싶었다. T = int(input()) c = [] for i in range(T): N, M, Q = map(str, input().split()) if M == "+": c.append(int(int(N) + int(Q))) elif M == "-": c.append(int(int(N) - int(Q))) elif M == "*": c.append(int(int(N) * int(Q))) elif M == "/": c.append(int(int(N) / int(Q))) print(sum(c)) 코딩테스트 준비를 해야한다고 생각하고 있었으나, 계속 미루던 중 구름에서 구름톤 챌린지라는 이벤트를 하는것을 보게 되었다. 매일 한문제씩은 나도 할..