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 |
Tags
- OS
- 기초100제
- 협업
- Operating System
- 코드업
- 스프링
- 토이프로젝트
- 파이썬
- 일상
- 타입스크립트
- 프로그래머스
- react-redux
- 자료구조
- web
- 백준
- Spring
- 리덕스장바구니
- Java
- react
- CPU 스케줄링
- C++
- 정렬
- 분할메모리할당
- 공부
- js to ts
- memory
- 알고리즘
- codeup
- error
- Redux
Archives
- Today
- Total
목록1002 (1)
감자튀김 공장🍟

✔ 문제 ✔ 풀이 # https://www.acmicpc.net/problem/1002 import sys import math input = sys.stdin.readline t = int(input()) for _ in range(t): x1, y1, r1, x2, y2, r2 = map(int, input().split()) dis = math.sqrt((x1-x2) ** 2 + (y1-y2) ** 2) if dis == 0 and r1 == r2: print(-1) elif abs(r1 - r2) == dis or r1 + r2 == dis: print(1) elif abs(r1 - r2) < dis < (r1 + r2): print(2) else: print(0) ✔ 설명 원의 방정식과 중심거리..
Algorithm/BOJ
2022. 12. 12. 15:10