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
- 파이썬
- Counting The number
- baekjoon
- 개수 세기
- 백준
- 브루트포스
- debugSymbolLevel
- 백준1476
- 백준3085
- 25083
- safari world
- 새싹
- 백준1107
- 사파리 월드
- 18108
- 10926
- 10430
- 기본메신저
- kotlin
- 디버그심볼
- BitMasking
- dp
- 1330
- Class Delegation
- 꼬마 정민
- 코틀린
- PreferenceManager
- Android
- 10807
- 2525
Archives
- Today
- Total
목록1107 (1)
세상을 더 좋게
[백준] 1107 '리모컨' 파이썬(python)
https://www.acmicpc.net/problem/1107 1107번: 리모컨 첫째 줄에 수빈이가 이동하려고 하는 채널 N (0 ≤ N ≤ 500,000)이 주어진다. 둘째 줄에는 고장난 버튼의 개수 M (0 ≤ M ≤ 10)이 주어진다. 고장난 버튼이 있는 경우에는 셋째 줄에는 고장난 버튼 www.acmicpc.net import sys input = sys.stdin.readline target = int(input()) n = int(input()) broken = list(map(int, input().split())) # 방향키 이동 min_count = abs(100-target) # 50만의 범위이기에 넉넉히 두배인 100만으로 하였다. broken키가 있으면 범위가 늘어나기 때문 f..
Algorithm/브루트 포스
2022. 1. 15. 00:00