-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Bronze IV] Title: 移動 (Moving), Time: 36 ms, Memory: 32412 KB -Baekjo…
…onHub
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# [Bronze IV] 移動 (Moving) - 24079 | ||
|
||
[문제 링크](https://www.acmicpc.net/problem/24079) | ||
|
||
### 성능 요약 | ||
|
||
메모리: 32412 KB, 시간: 36 ms | ||
|
||
### 분류 | ||
|
||
사칙연산, 수학 | ||
|
||
### 제출 일자 | ||
|
||
2024년 12월 24일 02:50:20 | ||
|
||
### 문제 설명 | ||
|
||
<p>A 地点から B 地点に移動するのに <var>X</var> 時間,B 地点から C 地点に移動するのに <var>Y</var> 時間かかる.</p> | ||
|
||
<p>A 地点から B 地点を経由して C 地点に移動するとき,<var>Z</var> 時間 <var>30</var> 分以内に移動することができるか判定せよ.</p> | ||
|
||
### 입력 | ||
|
||
<p>入力は以下の形式で標準入力から与えられる.</p> | ||
|
||
<pre><var>X</var> | ||
<var>Y</var> | ||
<var>Z</var></pre> | ||
|
||
### 출력 | ||
|
||
<p><var>Z</var> 時間 <var>30</var> 分以内に移動することができるならば <var>1</var> を,そうでない場合は <var>0</var> を出力せよ.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import sys | ||
|
||
|
||
# sys.setrecursionlimit(100000) | ||
|
||
|
||
def input(): | ||
return sys.stdin.readline() | ||
|
||
|
||
# main | ||
if __name__ == "__main__": | ||
X = float(input()) | ||
Y = float(input()) | ||
Z = float(input()) | ||
print(1 if X + Y <= Z + .5 else 0) |