일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- Python
- Get
- java
- 매일메일
- 항해플러스
- 자바
- redux-saga
- 이코테
- redux
- react
- axios
- useDispatch
- JavaScript
- 알고리즘
- sw expert academy
- 코딩테스트합격자되기
- 리액트
- 프로그래머스
- createSlice
- maeil-mail
- SW
- 항해99
- react-redux
- Algorithm
- 테코테코
- C++
- redux-toolkit
- json-server
- programmers
- react-router
- Today
- Total
목록분류 전체보기 (302)
Binary Journey
출처: https://swexpertacademy.com/ T = int(input()) print("#" * T)
출처: https://swexpertacademy.com/ p, k = map(int, input().split()) if p < k: print(p - k + 1000) else: print(p - k + 1)
출처: https://swexpertacademy.com/ T = int(input()) for test_case in range(1, T + 1): a, b = map(int, input().split()) div, mod = divmod(a, b) print(f'#{test_case} {div} {mod}')
출처: 프로그래머스 코딩 테스트 연습, https://programmers.co.kr/learn/challenges 테스트 케이스 한 곳에서 계속 시간초과 에러 남 def solution(bridge_length, weight, truck_weights): answer = 0 truck_weights.reverse() bridge = [0 for i in range(bridge_length)] while bridge: answer += 1 bridge.pop(0) if truck_weights: sum_weights = sum(bridge) if sum_weights + truck_weights[-1] > weight: bridge.append(0) else: bridge.append(truck_weig..
출처: https://swexpertacademy.com/ print(input().upper())
출처: https://swexpertacademy.com/ input 값을 받는 거였네..? T = input() alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" for t in T: print(alphabet.find(t) + 1, end = ' ')
출처: https://swexpertacademy.com/ 날짜 검증 day = [-99, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31] T = int(input()) for test_case in range(1, T + 1): YYYYMMDD = input() YYYY = YYYYMMDD[:4] MM = YYYYMMDD[4:6] DD = YYYYMMDD[6:] mm = int(MM) dd = int(DD) if (mm == 0 or mm > 12) or (dd == 0 or dd > day[mm]): print(f'#{test_case} -1') else: print(f'#{test_case} {YYYY}/{MM}/{DD}')
레벨에 비해 쉬운 문제지만 혼자서 문제의도를 지켜서 큐 만들어 풀었다는 거에 매우 만족 예전에 풀어놨던 문제라 점수는 알 수 없지만 그래도 아주 만족 from collections import deque def solution(progresses, speeds): wait_for_complete = deque() for progress, speed in zip(progresses, speeds): div, mod = divmod((100 - progress), speed) if mod > 0 : wait_for_complete.append(div + 1) else: wait_for_complete.append(div) 기준 = [0, wait_for_complete.popleft()] answer = [..
출처: https://swexpertacademy.com/ T = int(input()) answer = 0 while T > 0: div, mod = divmod(T, 10) answer += mod T = div print(answer)