일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 프로그래머스
- programmers
- react-redux
- SW
- 항해플러스
- react
- 이코테
- 항해99
- createSlice
- redux
- 테코테코
- 자바
- C++
- axios
- redux-toolkit
- sw expert academy
- redux-saga
- Algorithm
- useDispatch
- JavaScript
- json-server
- 코딩테스트합격자되기
- Python
- 리액트
- react-router
- 매일메일
- 알고리즘
- maeil-mail
- java
- Get
- Today
- Total
목록전체 글 (302)
Binary Journey
출처: https://swexpertacademy.com/ T = int(input()) for test_case in range(1, T + 1): h1, m1, h2, m2 = map(int, input().split()) h = h1 + h2 m = 0 if m1 + m2 12: h = h % 12 if h == 0: h += 12 print(f'#{test_case} {h} {m}')
출처: https://swexpertacademy.com/ T = int(input()) for test_case in range(1, T + 1): N, M = map(int, input().split()) matrix = [] answer = 0 for i in range(N): matrix.append(list(map(int, input().split()))) for i in range(N): ones = 0 for h in range(N): # 행 if matrix[i][h] == 0: if ones == M: answer += 1 ones = 0 continue ones += 1 if ones == M: answer += 1 ones = 0 for v in range(N): # 열 if matr..
출처: https://swexpertacademy.com/ T = int(input()) for test_case in range(1, T + 1): numbers = list(map(int, input().split())) MAX = max(numbers) MIN = min(numbers) numbers = [ n for n in numbers if n != MAX and n != MIN ] print(f'#{test_case} {round(sum(numbers) / len(numbers))}')
출처: https://swexpertacademy.com/ T = int(input()) for test_case in range(1, T + 1): number = int(input()) if number % 2: print(f'#{test_case} {test_case // 2 * -1 + test_case}') else: print(f'#{test_case} {test_case // 2 * -1}')
출처: https://school.programmers.co.kr/learn/courses/30/lessons/42842 def solution(brown, yellow): answer = [] 넓이 = brown + yellow for 세로 in range(1, 넓이 + 1): if 넓이 % 세로 == 0: 가로 = 넓이 // 세로 if 가로 >= 세로 and brown == 2 * 가로 + 2 * 세로 - 4: return [가로, 세로] return answer
출처: https://swexpertacademy.com/ T = int(input()) for test_case in range(1, T + 1): answer = 0 N, M = map(int, input().split()) flies = [] for n in range(N): flies.append(list(map(int, input().split()))) max_kill = 0 for i in range(N - M + 1): for j in range(N - M + 1): temp = 0 for a in range(M): for b in range(M): temp += flies[i +a][j+b] if temp > max_kill: max_kill = temp print(f'#{test_case..
출처: https://swexpertacademy.com/ T = int(input()) for test_case in range(1, T + 1): word = input() answer = 1 if word == ''.join(reversed(word)) else 0 print(f'#{test_case} {answer}')
출처: https://swexpertacademy.com/ T = int(input()) for test_case in range(1, T + 1): print(f'#{test_case}') star_num = int(input()) arr = [[0] * star_num for i in range(star_num)] for i in range(star_num): for j in range(star_num): if j == 0 or j == star_num - 1: arr[i][j] = str(1) else: arr[i][j] = str(int(arr[i-1][j-1]) + int(arr[i-1][j])) print(' '.join(arr[i][:i + 1]))
출처: 프로그래머스 코딩 테스트 연습, https://programmers.co.kr/learn/challenges def solution(citations): citations.sort() for i, citation in enumerate(citations): if citation >= len(citations) - i: return len(citations) - i return 0
출처: https://swexpertacademy.com/ T = int(input()) for test_case in range(1, T + 1): string = input() word = '' for s in string: word += s string = string[1:] if string.index(word) == 0: break print(f'#{test_case} {len(word)}')