본문 바로가기

clohi 님의 블로그

검색하기
clohi 님의 블로그
프로필사진 clohi

  • 분류 전체보기 (29)
    • Backend (1)
      • Spring (1)
    • Algorithm (21)
      • BOJ (21)
    • 구름톤 유니브 (1)
    • CS (6)
      • 운영체제 (2)
      • 네트워크 (4)
      • 자료구조&알고리즘 (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/06   »
일 월 화 수 목 금 토
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
Tags
  • 스택
  • 11726
  • 17299
  • 알고리즘
  • BOJ
  • 시뮬레이션
  • 15900
  • 3986
  • 투 포인터
  • 구현
  • 브루트포스
  • 백준
  • 5972
  • 14248
  • 8983
  • 10431
  • 그리디
  • 10799
  • 누적합
  • 이분탐색
  • 완전 탐색
  • 완전탐색
  • dfs
  • 10546
  • 16713
  • BFS
  • dp
  • 24480
  • 14503
  • python
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록8983 (1)

clohi 님의 블로그

[BOJ / Python] 8983 : 사냥꾼

https://www.acmicpc.net/problem/8983 문제 코드 import sysinput = sys.stdin.readlinem, n, l = map(int, input().split())hunter = list(map(int, input().split()))animal = [list(map(int, input().split())) for _ in range(n)]hunter.sort()cnt = 0for i in range(n): a = -l + animal[i][1] + animal[i][0] b = l - animal[i][1] + animal[i][0] left = 0 right = m - 1 while(left = a): cn..

Algorithm/BOJ 2025. 4. 13. 18:35
이전 Prev 1 Next 다음

Blog is powered by AXZ / Designed by Tistory

티스토리툴바