본문 바로가기

Dev.baelanche

검색하기
Dev.baelanche
프로필사진 baelanche

  • 분류 전체보기 (273)
    • CS (0)
      • 선형대수 (0)
    • Data Structure & Algorithm (273)
      • PS 관련 이론 (0)
      • PS - JAVA (270)
      • PS - C++ (3)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • 구현
  • 브루트포스
  • 디스조인트-셋
  • DFS
  • 힙
  • 그래프
  • 투포인터
  • BFS
  • 백트래킹
  • 큐
  • 그리디
  • 부분합
  • 수학
  • 정렬
  • 유니온파인드
  • 구간합
  • 완전탐색
  • 트리
  • 슬라이딩윈도우
  • 분할정복
  • 우선순위큐
  • 탐욕법
  • 시뮬레이션
  • 스택
  • 동적계획법
  • 이분탐색
  • 탐색
  • disjoint-set
  • 알고리즘
  • 문자열
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록우선순위큐 (1)

Dev.baelanche

[백준 11000] 강의실 배정

#include #include #include using namespace std; pair a[200000]; priority_queue pq; bool compare(pair a, pair b) { if (a.first > n; for (int i = 0; i > a[i].first >> a[i].second; sort(a, a + n, compare); for (int i = 0; i < n; i++) { int end = a[i].second; if (!pq.empty() &..

Data Structure & Algorithm/PS - C++ 2021. 4. 8. 17:09
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바