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
- Redux
- react
- 일상
- 타입스크립트
- 토이프로젝트
- C++
- react-redux
- 기초100제
- 파이썬
- 자료구조
- 공부
- web
- 분할메모리할당
- js to ts
- 코드업
- 알고리즘
- CPU 스케줄링
- Spring
- 정렬
- Operating System
- OS
- 스프링
- Java
- codeup
- memory
- error
- 백준
- 리덕스장바구니
- 프로그래머스
- 협업
Archives
- Today
- Total
목록1004 (1)
감자튀김 공장🍟
[백준/1004] 어린 왕자 (with 파이썬)
✔ 문제 ✔ 풀이 import sys import math input = sys.stdin.readline t = int(input()) for _ in range(t): x1, y1, x2, y2 = map(int, input().split()) p = int(input()) count = 0 for _ in range(p): cx, cy, cr = map(int, input().split()) dis1 = math.sqrt((x1 - cx) ** 2 + (y1 - cy) ** 2) dis2 = math.sqrt((x2 - cx) ** 2 + (y2 - cy) ** 2) if cr > dis1 and cr > dis2: pass elif cr > dis1: count += 1 elif cr > dis2..
Algorithm/BOJ
2022. 12. 13. 01:28