Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 29 | 30 | 31 |
Tags
- spring oauth
- 프로그래머스
- 백준 16719
- Kotlin
- spring security
- Coroutine
- sql 기술면접
- 백준 19238
- 웹어플리케이션 서버
- JPA
- JVM
- 백준 17779
- MySQL
- spring cloud
- 파이썬
- Spring
- 백준 16236
- springboot
- MSA
- 백준 15685
- 백준
- java 기술면접
- re.split
- 백준 파이썬
- with recursive
- 백준 17626
- Spring Boot
- 프로래머스
- java
- 백준 16235
Archives
- Today
- Total
목록백준 1244 (1)
시작이 반
[백준] 1244번번 (python 파이썬)
구현 문제이다. 남자일 경우 받은 숫자의 배수의 스위치를 반전시킨다. 여자일 경우 받은 숫자의 대칭되는 스위치를 반전시킨다. ex) 번호 1 2 3 4 5 6 7 8 스위치 0 1 0 1 1 1 1 0 일떄 받은 숫자가 6이라면 0 1 0 1 0 0 0 0 이된다. 구현은 쉽다. 하지만 출력 형식이 20개씩 잘라서 출력하는 것임을 명심하자! n = int(input()) switch = list(map(int, input().split(' '))) students = int(input()) receive_n = [tuple(map(int, input().split(' '))) for _ in range(students)] # 1: 남, 2: 여 for i in range(students): if rece..
알고리즘/백준
2021. 3. 29. 19:02