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 |
Tags
- Coroutine
- 백준 16236
- Kotlin
- with recursive
- 백준 17626
- spring cloud
- 프로그래머스
- JPA
- 백준
- 백준 17779
- 백준 19238
- 백준 16235
- java
- re.split
- 파이썬
- spring oauth
- java 기술면접
- 백준 16719
- Spring
- MSA
- MySQL
- JVM
- sql 기술면접
- 백준 파이썬
- 프로래머스
- Spring Boot
- 웹어플리케이션 서버
- 백준 15685
- spring security
- springboot
Archives
- Today
- Total
목록백준 1244 (1)
시작이 반
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bWCPLe/btq1ovSdpFc/toxjtGySF45tCKEWp9zno1/img.png)
구현 문제이다. 남자일 경우 받은 숫자의 배수의 스위치를 반전시킨다. 여자일 경우 받은 숫자의 대칭되는 스위치를 반전시킨다. 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