Skip to content

Commit 8d8769b

Browse files
committed
solve: 1085 직사강형에서 탈출
1 parent e8de75d commit 8d8769b

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
2+
"""
3+
문제 이름: 직사각형에서 탈출
4+
문제 번호: 1085
5+
문제 링크: https://www.acmicpc.net/problem/1085
6+
난이도: Bronze III
7+
태그: 기하학, 수학
8+
"""
9+
import sys
10+
11+
def input(): return sys.stdin.readline().rstrip()
12+
x, y, w, h = map(int, input().split())
13+
print(min([x, y, w-x, h-y]))
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
file: "1085.md"
3+
name: "직사각형에서 탈출"
4+
src: "https://www.acmicpc.net/problem/1085"
5+
tags:
6+
- 기하학
7+
- 수학
8+
done: true
9+
draft: false
10+
level: 3
11+
difficulty: "Bronze III"
12+
date: 2021-11-06
13+
---
14+
15+
# 직사각형에서 탈출
16+
17+
```python
18+
import sys
19+
20+
def input(): return sys.stdin.readline().rstrip()
21+
x, y, w, h = map(int, input().split())
22+
print(min([x, y, w-x, h-y]))
23+
```

0 commit comments

Comments
 (0)