submission_id string | problem_id string | status string | code string | input string | output string | problem_description string |
|---|---|---|---|---|---|---|
s517064495 | p00023 | Runtime Error | from numpy import *
N=int(input())
x_a=[0]*N
y_a=[0]*N
r_a=[0]*N
x_b=[0]*N
y_b=[0]*N
r_b=[0]*N
for i in range(N):
x_a[i],y_a[i],r_a[i],x_b[i],y_b[i],r_b[i]=map(float,input().split())
for i in range(N):
a=array([x_a[i]-x_b[i],y_a[i]-y_b[i]])
AB=linalg.norm(a)
r_diff=abs(r_a[i]-r_b[i])
if AB > r_a[i]+r_b[i]:
print(0)
elif r_a[i]+r_b[i] >= AB and AB >= r_diff:
print(1)
else:
if r_a[i] > r_b[i]:
print(2)
else:
print(-2) | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s730074865 | p00023 | Runtime Error | import math
N = input()
for val in range(1,N+1):
x = map(float,raw_input().split(' '))
d = math.sqrt((x[0]-x[3])**2 - (x[1]-x[4])**2)
s = x[2]+x[5]
r = math.fabs(x[2]-x[5])
if r >= d:
if x[2] > x[5]:
print '2'
else:
print '-2'
elif s < d:
print '0'
else:
print '1' | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s387296557 | p00023 | Runtime Error | import math
N = input()
for val in range(1,N+1):
x = map(float,raw_input().split(' '))
d = math.sqrt((x[0]-x[3])**2 - (x[1]-x[4])**2)
s = x[2]+x[5]
r = math.fabs(x[2]-x[5])
if r >= d:
if x[2] > x[5]:
print '2'
else:
print '-2'
elif s < d:
print '0'
else:
print '1' | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s063212164 | p00023 | Runtime Error | import math
N = input()
answers = []
for val in range(1,N+1):
x = map(float,raw_input().split(' '))
d = math.sqrt((x[0]-x[3])**2 - (x[1]-x[4])**2)
s = x[2]+x[5]
r = math.fabs(x[2]-x[5])
if r >= d:
if x[2] > x[5]:
answers.append(2)
else:
answers.append(-2)
elif s < d:
answers.append(0)
else:
answers.append(1)
for val in answers:
print val | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s834183125 | p00023 | Runtime Error | import Math
N = input()
answers = []
for val in range(1,N+1):
x = map(float,raw_input().split(' '))
d = Math.sqrt((x[0]-x[3])**2 - (x[1]-x[4])**2)
s = x[2]+x[5]
r = Math.fabs(x[2]-x[5])
if r >= d:
if x[2] > x[5]:
answers.append(2)
else:
answers.append(-2)
elif s < d:
answers.append(0)
else:
answers.append(1)
for val in answers:
print val | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s323930795 | p00023 | Runtime Error | import math
N = input()
answers = []
for val in range(1,N+1):
x = map(float,raw_input().split(' '))
d = Math.sqrt((x[0]-x[3])**2 - (x[1]-x[4])**2)
s = x[2]+x[5]
r = Math.fabs(x[2]-x[5])
if r >= d:
if x[2] > x[5]:
answers.append(2)
else:
answers.append(-2)
elif s < d:
answers.append(0)
else:
answers.append(1)
for val in answers:
print val | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s186816620 | p00023 | Runtime Error | import math
N = input()
answers = []
for val in range(1,N+1):
x = map(float,raw_input().split(' '))
d = math.fabs(sqrt((x[0]-x[3])**2 - (x[1]-x[4])**2))
s = x[2]+x[5]
r = math.fabs(x[2]-x[5])
if r >= d:
if x[2] > x[5]:
answers.append(2)
else:
answers.append(-2)
elif s < d:
answers.append(0)
else:
answers.append(1)
for val in answers:
print val | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s640598180 | p00023 | Runtime Error | import math
N = input()
answers = []
for val in range(1,N+1):
x = map(float,raw_input().split(' '))
d = math.fabs(math.sqrt((x[0]-x[3])**2 - (x[1]-x[4])**2))
s = x[2]+x[5]
r = math.fabs(x[2]-x[5])
if r >= d:
if x[2] > x[5]:
answers.append(2)
else:
answers.append(-2)
elif s < d:
answers.append(0)
else:
answers.append(1)
for val in answers:
print val | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s726539542 | p00023 | Runtime Error | import math
N = input()
answers = []
for val in range(1,N+1):
x = map(float,raw_input().split(' '))
d = math.sqrt((x[0]-x[3])**2 - (x[1]-x[4])**2))
math.fabs(d)
s = x[2]+x[5]
r = math.fabs(x[2]-x[5])
if r >= d:
if x[2] > x[5]:
answers.append(2)
else:
answers.append(-2)
elif s < d:
answers.append(0)
else:
answers.append(1)
for val in answers:
print val | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s302449795 | p00023 | Runtime Error |
import sys
import math
class Circle:
def __init__(self, x, y, r):
self.x = x
self.y = y
self.r = r
def distance(self, other):
dx = self.x - other.x
dy = self.y - other.y
return math.sqrt(dx ** 2 + dy ** 2)
def intersection(self, other):
d = self.distance(other)
if self.r > d + other.r:
return 2
elif other.r > d + self.r:
return -2
elif d =< self.r + other.r:
return 1
else:
return 0
#input_file = open(sys.argv[1], "r")
sys.stdin.readline()
for line in sys.stdin:
(xa, ya, ra, xb, yb, rb) = tuple(map(float, line.split(' ')))
ca = Circle(xa, ya, ra)
cb = Circle(xb, yb, rb)
print ca.intersection(cb) | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s919636042 | p00023 | Runtime Error | import sys
import math
n = int(raw_input())
for i in range(n):
dist = math.sqrt((yb - ya) **2 + (xb - xa) **2)
if dist > (ra + rb):
return 0
elif abs(ra - rb) <= dist <= (ra + rb):
return 1
elif dist < abs(ra - rb):
if ra > rb:
return 2
else:
return -2 | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s336222731 | p00023 | Runtime Error | import sys
import math
n = int(raw_input())
for i in range(n):
xa,ya,ra,xb,ya,rb = map(float,raw_input().split())
dist = math.sqrt((yb - ya) **2 + (xb - xa) **2)
if dist > (ra + rb):
return 0
elif abs(ra - rb) <= dist <= (ra + rb):
return 1
elif dist < abs(ra - rb):
if ra > rb:
return 2
else:
return -2 | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s822044398 | p00023 | Runtime Error | # your code goes here
a, b = input().split(" ")
print ("%d %d %.5f" % (int(a)/int(b), int(a)%int(b), float(a)/int(b))) | 2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
| 2
0
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Circles Intersection</H1>
<p>
You are given circle $A$ with radius $r_a$ and with central coordinate $(x_a, y_a)$ and circle $B$ with radius $r_b$ and with central coordinate $(x_b, y_b)$.
</p>
<p>
Write a program which prints:
</p>
<ul>
<li>"2" if $B$ is in $A$,</li>
<li>"-2" if $A$ is in $B$, </li>
<li>"1" if circumference of $A$ and $B$ intersect, and</li>
<li>"0" if $A$ and $B$ do not overlap.</li>
</ul>
<p>
You may assume that $A$ and $B$ are not identical.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. The first line consists of an integer $N$ ($N \leq 50$), the number of datasets. There will be $N$ lines where each line represents each dataset. Each data set consists of real numbers:<br/>
<br/>
$x_a$ $y_a$ $r_a$ $x_b$ $y_b$ $r_b$<br/>
</p>
<H2>Output</H2>
<p>
For each dataset, print 2, -2, 1, or 0 in a line.
</p>
<H2>Sample Input</H2>
<pre>
2
0.0 0.0 5.0 0.0 0.0 4.0
0.0 0.0 2.0 4.1 0.0 2.0
</pre>
<H2>Output for the Sample Input</H2>
<pre>
2
0
</pre>
|
s871302890 | p00024 | Wrong Answer | import math
while True:
try:
v = float(input())
t = v / 9.8
y = 4.9 * t ** 2
print(math.ceil(y / 5 + 1))
except EOFError:
break
| 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s367271343 | p00024 | Wrong Answer | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import math
for s in sys.stdin:
d = float(s)
t = d / 9.8
y = 4.9*t*t
n = 1 + y/5
print int(math.ceil(n)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s101488623 | p00024 | Wrong Answer | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import math
for s in sys.stdin:
print int(math.ceil(0.1/9.8*float(s)**2 + 1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s568298491 | p00024 | Wrong Answer | import math
minv = float(raw_input())
N = 1
while 9.8 * math.sqrt( (5*N -5) /4.9) < minv:
N +=1
print N | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s220424899 | p00024 | Wrong Answer | while True:
try:
v = input()
except EOFError:
break
t = v/9.8
y = 4.9*t*t
N = y/5+1
print int(N+0.9) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s059523174 | p00024 | Wrong Answer | while True:
try:
v = input()
except EOFError:
break
t = v/9.8
y = 4.9*t*t
N = 1+y//5
print int(N+0.9) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s583122771 | p00024 | Wrong Answer | while True:
try:
v = input()
except EOFError:
break
t = v/9.8
y = int(4.9*t*t+0.9)
N = 1+y/5
print N | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s774406193 | p00024 | Wrong Answer | import sys,math
for l in sys.stdin:print int(math.ceil(float(l)**2*0.01)+1) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s468163635 | p00024 | Wrong Answer | def get_float():
while True:
try:
yield float(raw_input())
except EOFError:
break
v_lis = list(get_float())
for v in v_lis:
t = v / 9.8
y = 4.9 * (t**2)
N = int(round((y + 5) / 5))
print N | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s876513111 | p00024 | Wrong Answer | def get_float():
while True:
try:
yield float(raw_input())
except EOFError:
break
v_lis = list(get_float())
for v in v_lis:
t = v / 9.8
y = 4.9 * (t**2)
_N = (y + 5) / 5
N = int(round(_N))
print N | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s454531382 | p00024 | Wrong Answer | import sys
for i in sys.stdin:
x = map(float, i.split())
t = x[0] / 9.8
y = 4.9*(t**2)
print int(round((y + 5)/5)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s632672375 | p00024 | Wrong Answer | import sys
from math import ceil
a = 9.8
h = 5.0
Vmin = [float(v) for v in (sys.stdin.readlines())]
for vmin in Vmin:
y = a/2 * vmin**2 / a **2
N = ceil(y/h+1)
print(int(N)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s632214016 | p00024 | Wrong Answer | import math
while True:
try:
v = eval(input())
print(math.ceil(v**2 / 98 + 1))
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s695986528 | p00024 | Wrong Answer | while True:
try:
v = float(input())
except:
break
print(int(v ** 2 / 98 + 1.5)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s169603437 | p00024 | Wrong Answer | while True:
try:
v = float(input())
except:
break
print(int(v ** 2 / 98 + 1.5 + 0)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s171192001 | p00024 | Wrong Answer | while True:
try:
v = float(input())
except:
break
print(int(v ** 2 / 98 + 1.5 - 0)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s167181869 | p00024 | Wrong Answer | import math
while True:
try:
v = float(input())
except:
break
print(math.ceil(v ** 2 / 98 + 1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s538748546 | p00024 | Wrong Answer | import sys, math
from fractions import Fraction as F
for line in sys.stdin:
t = F(line.rstrip()) / F(98, 10)
y = F(49, 10) * t * t
print int(math.ceil(y/5 + 1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s848182053 | p00024 | Wrong Answer | import math
m = float(input())
t = m / 9.8
y = 4.9 * t * t
n = math.ceil(y / 5)
print(int(n + 1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s870970478 | p00024 | Wrong Answer | import math
while True:
try:
v = float(input())
t = v / 9.8
y = 4.9 * (t**2)
N = y / 5 + 1
print(math.ceil(N))
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s663704932 | p00024 | Wrong Answer | import math
while(1):
try:
thv = float(raw_input())
except:
break
for i in range(1, 20):
y = 5 * (i-1)
t = math.sqrt(y/4.9)
v = 9.8 * t
if v >= thv:
print i
break
| 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s163505143 | p00024 | Wrong Answer | import math
while(1):
try:
thv = float(raw_input())
except:
break
for i in range(1, 20):
y = 5 * (i-1)
t = math.sqrt(y/4.9)
v = 9.8 * t
if v > thv:
print i
break
| 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s583606005 | p00024 | Wrong Answer | import math
while(1):
try:
thv = float(raw_input())
except:
break
for i in range(1, 100):
y = 5 * (i-1)
t = math.sqrt(y/4.9)
v = 9.8 * t
if v > thv:
print i
break
| 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s038416162 | p00024 | Wrong Answer | import math
while True:
try:
print(math.ceil(float(input())**2/98+1))
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s811073269 | p00024 | Wrong Answer | import sys
import math
v=[]
for line in sys.stdin:
v.append(float(line.rstrip()))
for i in range(len(v)):
print(math.ceil(v[i]**2/98+1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s503495974 | p00024 | Wrong Answer | import sys
import math
v=[]
for line in sys.stdin:
v.append(float(line))
for i in range(len(v)):
print(math.ceil(v[i]**2/98+1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s368856739 | p00024 | Wrong Answer | import sys
import math
v=[]
for line in sys.stdin:
v.append(float(line))
for i in range(len(v)):
print(math.ceil(v[i]**2/98+1),) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s000892653 | p00024 | Wrong Answer | import sys
import math
v=[]
for line in sys.stdin:
v.append(float(line))
for i in range(len(v)):
print math.ceil(v[i]**2/98+1), | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s848277970 | p00024 | Wrong Answer | import sys
import math
v=[]
for line in sys.stdin:
v.append(float(line.strip()))
for i in range(len(v)):
print(math.ceil(v[i]**2/98+1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s391131218 | p00024 | Wrong Answer | import sys
import math
for line in sys.stdin:
v=float(line.strip())
print(math.ceil(v**2/98+1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s571303989 | p00024 | Wrong Answer | import sys
import math
while True:
try:
v=float(input())
print(math.ceil(v**2/98+1))
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s796574965 | p00024 | Wrong Answer | import math
while True:
try:
v=float(input())
print(int(math.ceil(v**2/98+1)))
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s746625333 | p00024 | Wrong Answer | while True:
try:
v = float(input())
except:
break
t = v / 9.8
y = 4.9 * pow(t, 2)
N = (y + 5) / 5
print(round(N)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s684887775 | p00024 | Wrong Answer | from math import ceil
while True:
try:
v = input()
except:
break
v = float(v)
print(ceil(v * v / 98 + 1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s389443511 | p00024 | Wrong Answer | from math import ceil
while True:
try:
v = input()
v = float(v)
print(ceil(v * v / 98 + 1))
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s417868271 | p00024 | Wrong Answer | import sys
for s in sys.stdin:
n=float(s[:-1])
t=n/9.8
y=4.9*t**2
N=(y+5)//5
print(N) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s692376563 | p00024 | Wrong Answer | while(1):
try:
n=float(input())
t=n/9.8
y=4.9*t**2
N=(y+5)//5
print(N+1)
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s371946028 | p00024 | Wrong Answer | # coding:utf-8
try:
v = float(raw_input())
t = v / 9.8
y = 4.9 * t * t
if y - 5 < 0:
print 1
else:
n = 1
h = 5
while h < y:
h += 5
n += 1
print n + 1
except:
None | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s164437528 | p00024 | Wrong Answer | # coding:utf-8
try:
while True:
v = float(raw_input())
t = v / 9.8
y = 4.9 * t * t
if y - 5 < 0:
print 1
else:
n = 1
h = 5
while h < y:
h += 5
n += 1
print n + 1
except:
None | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s801661086 | p00024 | Wrong Answer | # coding:utf-8
try:
while True:
v = float(raw_input())
t = v / 9.8
y = 4.9 * t * t
if y - 5 < 0:
print 1
else:
n = 1
h = 5
while h < y:
h += 5
n += 1
print n + 1
except:
None, | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s439547397 | p00024 | Wrong Answer | # coding:utf-8
try:
while True:
v = float(raw_input())
t = v / 9.8
y = 4.9 * t * t
if y - 5 < 0:
print 1
else:
n = 1
h = 5
while h <= y:
h += 5
n += 1
print n + 1
except:
None, | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s354678764 | p00024 | Wrong Answer | while True:
try:
v = float(raw_input())
t = v / 9.8
y = 4.9 * t * t
if y - 5 < 0:
print 1
else:
n = 1
h = 5
while h <= y:
h += 5
n += 1
print n + 1
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s537194451 | p00024 | Wrong Answer | import math
print(math.ceil((math.ceil(4.9*(float(input())/9.8)**2)+5)/5))
| 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s398206125 | p00024 | Wrong Answer | from math import *
while True:
try:
def t_T(v):
return (v)/9.8
def y_Y(t):
return 4.9* (t**2)
def ans(y):
return (y+5)/5
v = int(input())
t = t_T(v)
y = y_Y(t)
kai = ans(y)
kai =ceil(kai)
print int(kai*1)
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s683257183 | p00024 | Wrong Answer | while True:
try:
a = float(input())
b = (a**2)/19.6
b = (b/5)+1
if int(b) < b:
print int(b)+1
except EOFError: break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s816787939 | p00024 | Wrong Answer | import sys
import math
def datasets():
for line in sys.stdin:
yield float(line)
def proc(fallspd):
t = fallspd / 9.8
y = 4.9 * t * t
return math.ceil((y + 5.0) / 5.0)
if __name__ == '__main__':
for d in datasets():
print(proc(d))
| 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s321986502 | p00024 | Wrong Answer |
import sys
import math
def heigh(v):
t = v / 9.8
return 4.9 * t ** 2
#input_file = open(sys.argv[1], "r")
for line in sys.stdin:
v = float(line)
h = heigh(v)
n = int(math.ceil(h / 5.0 + 1.0))
print n | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s611759499 | p00024 | Wrong Answer | import math
while True:
try:
g = 9.8
l = 4.9
v = float(raw_input())
t = v/g
y = l*t*t
n = y/5 + 1
print int(math.ceil(n))
except EOFError: break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s903196681 | p00024 | Wrong Answer | import sys
import math
g = 9.8
for i in sys.stdin:
vd = float(i)
N = int(math.ceil((vd**2 / (10 * g)) + 1))
print(N) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s917595025 | p00024 | Wrong Answer | import sys
import math
g = 9.8
for i in sys.stdin:
try:
vd = float(i)
N = int(math.ceil((vd**2 / (10 * g)) + 1))
print(N)
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s523690891 | p00024 | Wrong Answer | import sys
from decimal import *
g = 9.8
for i in sys.stdin:
try:
vd = float(i)
N = Decimal((vd**2 / (10 * g)) + 1).quantize(Decimal('1.'), rounding=ROUND_UP)
print(N)
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s172883294 | p00024 | Wrong Answer | import sys
import math
g = 9.8
while True:
try:
s = raw_input().strip()
if not s:
break
vd = float(s)
N = int(math.ceil((vd**2 / (10 * g)) + 1))
print(N)
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s486928640 | p00024 | Wrong Answer | import sys
import math
g = 9.8
while True:
try:
s = raw_input()
vd = float(s)
N = int(math.ceil((vd * vd / (10 * g)) + 1))
#M = int(math.ceil((vd * vd / (9.8 * 2) + 5) / 5))
print N
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s286567275 | p00024 | Wrong Answer | import sys
import math
g = 9.8
while True:
try:
s = raw_input()
vd = float(s)
N = int(math.ceil((vd * vd / (10 * 9.8)) + 1))
#N = int(math.ceil((vd * vd / (10 * g)) + 1))
#N = int(math.ceil((vd * vd / (9.8 * 2) + 5) / 5))
print N
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s022935451 | p00024 | Wrong Answer | import sys
import math
g = 9.8
while True:
try:
s = raw_input()
vd = float(s)
#N = int(math.ceil((vd * vd / (10 * g)) + 1))
#N = int(math.ceil((vd * vd / (9.8 * 2) + 5) / 5))
N = int(math.ceil((vd * vd / (10 * 9.8)) + 1.0))
print N
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s287131053 | p00024 | Wrong Answer | import sys
import math
g = 9.8
while True:
try:
s = raw_input()
vd = float(s)
#N = int(math.ceil((vd * vd / (10 * g)) + 1))
#N = int(math.ceil((vd * vd / (9.8 * 2) + 5) / 5))
N = int(math.ceil((vd * vd / (9.8 * 2 * 5)) + (5 / 5)))
print N
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s182502290 | p00024 | Wrong Answer | import sys
import math
g = 9.8
while True:
try:
s = raw_input()
vd = float(s)
N = int(math.ceil((vd * vd / (10.0 * g)) + 1.0))
#N = int(math.ceil((vd * vd / (9.8 * 2) + 5) / 5))
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s395366573 | p00024 | Wrong Answer | import sys
import math
g = 9.8
while True:
try:
s = raw_input()
vd = float(s)
#N = int(math.ceil((vd * vd / (10.0 * g)) + 1.0))
N = int(math.ceil((vd * vd / (9.8 * 2) + 5) / 5))
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s413050340 | p00024 | Wrong Answer | import sys
import math
g = 9.8
while True:
try:
s = raw_input()
vd = float(s)
N = int(math.ceil((vd * vd / (10.0 * g)) + 1.0))
#N = int(math.ceil((vd * vd / (9.8 * 2) + 5) / 5))
print(N)
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s317441202 | p00024 | Wrong Answer | while True:
try:
s = float(raw_input())
t = s/9.8
y = 4.9*t**2
n = 0
while n >= y:
n +=5
print n
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s223767517 | p00024 | Wrong Answer | while True:
try:
s = float(raw_input())
t = s/9.8
y = 4.9*t**2
n = 1
while 5*(n-1) >= y:
n += 1
print n
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s628413002 | p00024 | Wrong Answer | import sys
import math
g=9.8
for v in sys.stdin:
print int(math.ceil((float(v)**2)/(2*g*5)+1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s409564933 | p00024 | Wrong Answer | import sys,math
for v in sys.stdin:
print int(math.ceil((float(v)**2)/(2*9.8*5)+1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s884528306 | p00024 | Wrong Answer | import sys,math
for v in sys.stdin:
print int(math.ceil((float(v[:-1])**2)/(2*9.8*5)+1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s622165824 | p00024 | Wrong Answer | import sys,math
for v in sys.stdin:
v=float(v[:-1])
print int(math.ceil((v**2)/(2*9.8*5)+1)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s600820540 | p00024 | Time Limit Exceeded | while 1:
try:
y = 4.9 * (float(input()) / 9.8) ** 2
N = 1
while N * 5 - 5 < y:
N += 1
print(N)
except:
pass | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s473210902 | p00024 | Accepted | import math
while True:
try:
v = float(input())
print(math.ceil(v ** 2 / 19.6 / 5) + 1)
#print(v ** 2 / 19.6 // 5 + 2)
except EOFError:
break
| 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s106557815 | p00024 | Accepted | while True:
try:
v=float(input())
t=v/9.8
y=4.9*t**2
N=0
while y>5*(N-1):
N +=1
print(N)
except:break
| 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s272956497 | p00024 | Accepted | while True:
try:
n = float(input())
ans = 1
v = 0
while v < n:
ans += 1
y = ans * 5 - 5
t = (y / 4.9) ** 0.5
v = 9.8 * t
print(ans)
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s542796075 | p00024 | Accepted | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
import math
for s in sys.stdin:
print int(math.ceil(( float(s)**2 )*0.1/9.8)+1) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s810925505 | p00024 | Accepted | while True:
try:
x=float(input())
cnt=1
while True:
y=cnt*5-5
t=(y/4.9)**0.5
v=t*9.8
if x<=v:
print(cnt)
break
else: cnt+=1
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s557868141 | p00024 | Accepted | import sys
f = sys.stdin
import math
for line in f:
v = float(line)
t = v / 9.8
y = 4.9 * t * t
n = math.ceil(y / 5) + 1
print(n) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s007052921 | p00024 | Accepted | import math
while True:
try:
minv = float(raw_input())
except EOFError:
break
N = 1
while 9.8 * math.sqrt( (5*N -5) /4.9) < minv:
N +=1
print N | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s872539521 | p00024 | Accepted | import math
while True:
try:
l=float(input())
except:
break
y=4.9*(l/9.8)**2/5
print(math.ceil(y)+1) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s925193326 | p00024 | Accepted | import sys
import math
for v in sys.stdin:
y=4.9*(float(v)/9.8)**2
N=(y+5.0)/5.0
print int(math.ceil(N)) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s656258383 | p00024 | Accepted | import sys,math
for l in sys.stdin:print int(math.ceil(float(l)**2*0.01020408163265306122448979591837)+1) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s511443324 | p00024 | Accepted | import sys,math
for l in sys.stdin:print int(math.ceil(float(l)**2/98)+1) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s644193259 | p00024 | Accepted | import sys,math
for l in sys.stdin:print int(math.ceil(float(l)**2/98))+1 | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s115679566 | p00024 | Accepted | import math
def get_float():
while True:
try:
yield float(raw_input())
except EOFError:
break
v_lis = list(get_float())
for v in v_lis:
t = v / 9.8
y = 4.9 * (t**2)
_N = (y + 5) / 5
N = int(math.ceil(_N))
print N | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s834048210 | p00024 | Accepted | import math
import sys
def speed(floor):
N = 5 * floor - 5
time = math.sqrt(N/4.9)
return (9.8 * time)
for s in sys.stdin:
brkSpd = float(s)
floor = 1
while brkSpd > speed(floor):
floor = floor + 1
print(floor) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s630201281 | p00024 | Accepted | # -*- coding:utf-8 -*-
def main():
while True:
try:
v=float(input())
flag=True
i=1
while flag:
h=19.6*(5*i-5)
if h>=v**2:
flag=False
print(i)
elif h<v**2:
i+=1
except:
break
if __name__ == '__main__':
main() | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s358856737 | p00024 | Accepted | import math
while 1:
try:
while 1:
v=float(raw_input())
t=v/9.8
y=t*t*4.9
n=int(math.ceil((y+5.0)/5.0))
tmp=0
while 1:
if tmp*5-5>=y:
n=tmp
break
tmp+=1
print n
except:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s342282723 | p00024 | Accepted | import sys
for line in sys.stdin.readlines():
v = float(line)
t = v / 9.8
h = 4.9*(t**2)
n = 0
while 5*(n-1) < h:
n += 1
print(n) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s432907532 | p00024 | Accepted | from math import *
PI = 3.1415926535898
while True:
try:
v = input()
t = v / 9.8
y = t*t * 4.9
ans = 0
while 5*ans-5 < y:
ans += 1
print ans
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s638331972 | p00024 | Accepted |
import sys,math
for line in sys.stdin.readlines():
v = float(line)
t = v/9.8
y = 4.9*t*t
floor = (y + 5)/5
floor = math.ceil(floor)
print(floor) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s009729161 | p00024 | Accepted | def floor(y):
f=1
height=0
while True:
if y<height and y-height<5:
return f
else:
f+=1
height+=5
while True:
try:
v=float(input())
y=v**2/(2*9.8)
print(floor(y))
except EOFError:
break | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
s722132305 | p00024 | Accepted | import math
while True:
try:
v = float(input())
except:
break
print(math.ceil(4.9 * (v / 9.8) ** 2 / 5) + 1) | 25.4
25.4
| 8
8
|
<script type="text/x-mathjax-config">
MathJax.Hub.Config({ tex2jax: { inlineMath: [["$","$"], ["\\(","\\)"]], processEscapes: true }});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-MML-AM_CHTML">
</script>
<H1>Physical Experiments</H1>
<p>
Ignoring the air resistance, velocity of a freely falling object $v$ after $t$ seconds and its drop $y$ in $t$ seconds are represented by the following formulas:<br/>
<br/>
$ v = 9.8 t $<br/>
$ y = 4.9 t^2 $<br/>
</p>
<!--
<center><img src="https://judgeapi.u-aizu.ac.jp/resources/images/IMAGE1_physical"></center>
-->
<p>
A person is trying to drop down a glass ball and check whether it will crack. Your task is to write a program to help this experiment.
</p>
<p>
You are given the minimum velocity to crack the ball. Your program should print the lowest possible floor of a building to crack the ball. The height of the $N$ floor of the building is defined by $5 \times N - 5$.
</p>
<H2>Input</H2>
<p>
The input consists of multiple datasets. Each dataset, a line, consists of the minimum velocity <i>v</i> (0 < <i>v</i> < 200) to crack the ball. The value is given by a decimal fraction, with at most 4 digits after the decimal point. The input ends with EOF. The number of datasets is less than or equal to 50.
</p>
<H2>Output</H2>
<p>
For each dataset, print the lowest possible floor where the ball cracks.
</p>
<H2>Sample Input</H2>
<pre>
25.4
25.4
</pre>
<H2>Output for the Sample Input</H2>
<pre>
8
8
</pre>
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.