본문 바로가기

황소개발자

검색하기
황소개발자
프로필사진 hjp845

  • 분류 전체보기 (181)
    • 백준 문제 풀이 (154)
    • 투자자의 생각 (5)
    • 각종 에러 잡기 (10)
    • 앱개발 (8)
    • 매일 11시 영어 (0)
    • 유유자적하게 글쓰기 (0)
Guestbook
반응형
Notice
Recent Posts
Recent Comments
Link
  • 실전언어 연구소
«   2025/07   »
일 월 화 수 목 금 토
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
  • 순열
  • Python
  • permutation
  • 백준
  • 뒤로가기
  • 1260
  • 괄호
  • 홈화면
  • 코테
  • Kotlin
  • 코틀린
  • itertools
  • 앱
  • 안드로이드
  • 1182
  • 파이썬
  • 매일11시
  • 11기
  • 6603
  • LCS
  • lcm
  • 11057
  • 11053
  • 최소공배수
  • 나머지
  • Combination
  • Android
  • expo
  • 9095
  • 11054
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록7568 (1)

황소개발자

백준 7568 파이썬 python : 덩치 @@황소처럼 우직하게@@

혹시나 시간초과가 나면 어쩔까 했는데 시간복잡도 n^2 으로 풀어도 괜찮다. import sys r = sys.stdin.readline people = [] n = int(r()) for i in range(n): x, y = map(int, r().split()) people.append([x, y]) for i in range(n): total = 1 for j in range(n): if i == j: continue if people[j][0] > people[i][0] and people[j][1] > people[i][1]: total += 1 print(total, end=" ") 이런 단순한 문제를 보면 시간초과 공포증이 있다;; TIME LIMIT POBIA

백준 문제 풀이 2020. 2. 23. 13:31
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바