Problem:


Score : 100 points

Problem Statement

Given is an integer N.

Takahashi chooses an integer a from the positive integers not greater than N with equal probability.

Find the probability that a is odd.

Constraints

1 \leq N \leq 100

Input

Input is given from Standard Input in the following format:

N

Output

Print the probability that a is odd.
Your output will be considered correct when its absolute or relative error from the judge's output is at most 10^{-6}.

Sample Input 1

4

Sample Output 1

0.5000000000

There are four positive integers not greater than 4: 1, 2, 3, and 4. Among them, we have two odd numbers: 1 and 3. Thus, the answer is \frac{2}{4} = 0.5.

Sample Input 2

5

Sample Output 2

0.6000000000

Sample Input 3

1

Sample Output 3

1.0000000000



Sample input:
4


Sample output:
0.5000000000

Submission status: Wrong Answer

Solution code:
N=int(input())
x=N//2
print(x/N)

Submission status: Wrong Answer

Solution code:
n=int(input())
print(0.5 if n%2==0 else (n/2+1)/n)

Submission status: Wrong Answer

Solution code:
# ここから
# import sys
# input = sys.stdin.readline
# sys.setrecursionlimit(1000000)

def resolve():
    n = int(input())
    res = (n+1 // 2) / n
    print(res)




resolve()

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
  print(1.0)
  
else:
  print(int(n/2)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())

print((n // 2) / n)

Submission status: Wrong Answer

Solution code:
n = int(input())
print(2/n if n%2==0 else ((n+1)//2)/n)

Submission status: Wrong Answer

Solution code:
def main():
  import sys
  a=int(input())
  b=tuple(map(int,sys.stdin.readline().split()))
  c=[None]*a
  d=1
  for e in b:
    c[e-1]=d
    d=d+1
  print(" ".join(map(str,c)))
if __name__=="__main__":
  main()

Submission status: Wrong Answer

Solution code:
N = int(input())
print((N//2)/N if N!=1 else 1)

Submission status: Wrong Answer

Solution code:
N = int(input())

count = 0
for i in range(N):
  if i%2 != 0:
    count += 1
    
if count == 0:
  print(0)
else:
  print(count/N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N == 1:
  print(1)
elif N%2 != 0:
  print((N-2)/N)
else:
  print(N/2)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N == 1:
  print(1)
elif N%2 != 0:
  print((N-2)/5)
else:
  print(N/2)

Submission status: Wrong Answer

Solution code:
N=int(input())
if N==1:
    print(1)
elif N%2==1:
    print(0.6)
else:
    print(0.5)

Submission status: Wrong Answer

Solution code:
def divisors(n) -> list:
  res = []
  for i in range(1, int(n ** 0.5) + 1):
    if n % i == 0:
      res.append(i)
      if i != n // i:
        res.append(n // i)
  #divisors.sort()
  return res

# print(divisors(10))
# 出力
# [1, 10, 2, 5]

Submission status: Wrong Answer

Solution code:
n = int(input())
if n%2 != 0:
  print(int(n/2)/n)
else:
  print((int(n/2)+1)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n%2 != 0:
  print(int(n/2))
else:
  print(int(n/2)+1)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N == 1:
    print("1.0000000000")
elif N % 2 == 0:
    print("0.5000000000")
else:
    print("0.4000000000")

Submission status: Wrong Answer

Solution code:
N = input()
n = int(N)
output = float((2*n - 1)/n)
print(output)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N % 2 == 0:
    ans = 0.5 
    print(ans)
else:
    if N == 1:
        print(0)

    else:
        ans = ((N-1)/2 + 1)/N
        print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n % 2 == 0:
    x = (n / 2) / n
elif n == 1:
    x = 1
else:
    x = ((n / 2) + 1) / n

print(float(x))

Submission status: Wrong Answer

Solution code:
import sys


print("Please enter a value of N")
n = int(input())
#if isinstance(n,int) == False:
    #print("Input value is not a type of int.")
    #sys.exit()
#elif n < 1 or 100 < n:
    #print("Input value is not in this range [0,100].")
    #sys.exit()
#else:
if n%2 == 0:
    a = float(1/2)
else:
    a = float(((n+1)/2)/n)
    
print(a)

Submission status: Wrong Answer

Solution code:
import sys


print("Please enter a value of N")
n = int(input())
if isinstance(n,int) == False:
    print("Input value is not a type of int.")
    sys.exit()
elif n < 1 or 100 < n:
    print("Input value is not in this range [0,100].")
    sys.exit()
else:
    if n%2 == 0:
        a = float(1/2)
    else:
        a = float(((n+1)/2)/n)
    
    print(a)

Submission status: Wrong Answer

Solution code:
import sys

print("Please enter a value of N")
n = input()
n = int(n)
if isinstance(n,int) == False:
    print("Input value is not a type of int.")
    sys.exit()
elif n < 0 and 100 < n:
    print("Input value is not in this range [0,100].")
    sys.exit()
else:
    n = ((n+1)/2)/n
    print(n)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=a = ("%.10f" % ((n//2+1)/n))
print(a)

Submission status: Wrong Answer

Solution code:
n=int(input())
a=a = ("%.10f" % ((n//2)/n))
print(a)

Submission status: Wrong Answer

Solution code:

N = int(input())

if N % 2 == 0:
    print(1-(N/2)/2)
else:
    odd_N = N//2 + 1
    print(odd_N / N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 2 == 0:
    print(float(2/N))
else:
    print(float(3/N))

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 2 == 0:
  print(2/N)
else:
  print(3/N)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2 == 0:
  print(float((n/2)/n))
elif n==1:
  print(1)
else:
  print(float((n/2+1)/n))

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2 == 0:
  print(float((n/2)/n))
elif n==1:
  print(1)
else:
  print(float((n-2)/n))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n > 1:
    print( int(n/2) / n )
else:
    print(1)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
  print(1)
elif n%2 == 0:
  print(0.5)
else:
  print((n//2)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
  print(1)
elif n%2 == 0:
  print((n//2)/n)
else:
  print(0.6)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
  print(1)
elif n%2 == 0:
  print(0.5)
else:
  print(0.6)

Submission status: Wrong Answer

Solution code:
input1=float(input())
print (abs((input1-2)/input1))

Submission status: Wrong Answer

Solution code:
input1=float(input())
print ((input1-2)/input1)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N == 1:
    print(1/float(1))
elif N%2==0:
    print((N//2)/float(N))
else:
    print((N//2)/float(N))

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 1:
  print(((N-1)/2)/((N-1)/2+1))
else:
  print(0.5)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 2 == 0:
  print((N/2-1)/(N/2))
else:
  print(0.5)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2==0:
    print("0.5000000000")
else:
    print("0.6000000000")

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2==0:
    print(0.5000000000)
else:
    print(0.6000000000)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N % 2 == 0:
  print(0.5)
else:
  print( (N//2)+1 / N )

Submission status: Wrong Answer

Solution code:
i=int(input())
print(0.5 if i%2==0 else 1.0 if i==1 else 1-2/i)

Submission status: Wrong Answer

Solution code:
N=int(input())

if N%2==0:
  print(0.5)
else:
  print((0.5*N+1)/N)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 2 != 0:
	print (((n+1)/2) /n)
else:
  print (2/n)

Submission status: Wrong Answer

Solution code:
N = int(input())
if(N%2 == 0):
  ans = 1/2
  print(ans)
elif(N == 1):
  print(1)
else:
  ans = ((N/2)+1) / N
  print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
if(N%2 == 0):
  ans = 1/2
  print(ans)
else:
  ans = ((N/2)+1) / N
  print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
if(N%2 == 0):
  print(1/2)
else:
  ans = ((N/2)+1) / N
  print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
numodd = N%2
print(numodd/N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 2 == 0:
    print(0.5)
else:
    print((N-1)/2/N)

Submission status: Wrong Answer

Solution code:
import sys
sys.setrecursionlimit(10**6)
if sys.platform in (['ios','darwin','win32']):
	sys.stdin=open('Untitled.txt')
input = sys.stdin.readline
def INT(): return int(input())
def MAP(): return [int(s) for s in input().split()]

def main():
	N = INT()
	if N % 2 == 0:
		print(N/2)
	else:
		print(((N//2)+1)/N)

if __name__ == '__main__':
	main()

Submission status: Wrong Answer

Solution code:
a=float(input())
a=a-1 if a%2==0 else a
print(((a+1)//2)/a)

Submission status: Wrong Answer

Solution code:
a=float(input())
a=a-1 if a%2==0 else a
print((a+1)/2/a)

Submission status: Wrong Answer

Solution code:
a=float(input())
a=a-1 if a%2==0 else a
print((a+1)//2//a)

Submission status: Wrong Answer

Solution code:
a=float(input())
a=a-1 if a%2==0 else a
print(0.5*(1+a**-1))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = (N+1)/2
print(S/N)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n/2 == 0:
    print(0.5)
else:
    o = (n+1)/2
    print(o/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
odd = round(n/2)
print(odd/n)

Submission status: Wrong Answer

Solution code:
i = int(input("Enter a number: "))
if 1 <= i <= 100:
    lst = []
    y = 0
    for x in range(i+1):
        if(x % 2) == 0:
            continue
        else:
            lst.append(x)
            y += 1
    num = y / i
    a = '{0:.10f}'.format(num)
    print(a)

Submission status: Wrong Answer

Solution code:
i = int(input("Enter a number: "))
lst = []
y = 0
for x in range(i+1):
    if(x % 2) == 0:
        continue
    else:
        lst.append(x)
        y += 1
num = y / i
a = '{0:.10f}'.format(num)
print(a)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

N = int(input())

if N == 1:
    print(1)
elif N % 2 == 0:
    print(0.5)
elif N % 2 == 1:
    print(0.6)

Submission status: Wrong Answer

Solution code:
i=int(input())
j=i%2
k=0.0
if j==0:
  k=0.5
else:
  k=(float(i-1)/2.0)/float(i)
print(k)

Submission status: Wrong Answer

Solution code:
i=int(input())
j=i%2
k=0.0
if j==0:
  k=0.5
else:
  k=((i-1)/2)/i
print(k)

Submission status: Wrong Answer

Solution code:
i=int(input())
k=float(i/2)/float(i)
print(k)

Submission status: Wrong Answer

Solution code:
i=int(input())
k=float(i/2)/float(i)

Submission status: Wrong Answer

Solution code:
N = float(input("Number:\n"))
if(N%2==0):
  res = (N/2)/N
else:
  res = ((N+1)/2)/N
print(res)

Submission status: Wrong Answer

Solution code:
N = int(input("Number:\n"))
if(N%2==0):
  res = (N/2)/N
else:
  res = ((N+1)/2)/N
print(res)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==0:
    print(n/2)
else:
    print((n//2+1)/n)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==0:
    print(n/2)
else:
    print(n//2+1/n)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==0:
    print(1/2)
else:
    print((1/2)+(1/n))

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==0:
    print(n/2)
else:
    print((n/2)+(1/n))

Submission status: Wrong Answer

Solution code:
a=int(input())

count=0
for x in range(1,a+1):
    print(x)
    if x%2!=0:
        count+=1
print(count/a)

Submission status: Wrong Answer

Solution code:
a=int(input())

count=0
for x in range(1,a+1):
    print(x)
    if x%2!=0:
        count+=1
print(count/a)

Submission status: Wrong Answer

Solution code:
a=int(input())

if a%2==0:
  print(0.5)
elif a==1:
 print(1)
else:
  print(0.6)

Submission status: Wrong Answer

Solution code:
a=int(input())
b=(a+1)/2*a
if a%2==0:
  print(0.5)
else:
  print(b)

Submission status: Wrong Answer

Solution code:
n = int(input())
odd = []

for i in range(n+1):
  if i%2 != 0:
    odd.append(i)
    
ans = len(odd)/n
print(odd)
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
    print(1)
elif n % 2 == 0:
    print(0.5)
else:
    print(0.6)

Submission status: Wrong Answer

Solution code:
N = int( input() )
print( ( N // 2 ) / N )

Submission status: Wrong Answer

Solution code:
a=int(input())
if a%2==0:
    print('{:.6f}'.format(2/a))
else :
    print('{:.6f}'.format((a+1)/2/a))

Submission status: Wrong Answer

Solution code:
a=int(input())
if a%2==0:
    print(a/2)
else :
    print('{:.6f}'.format((a+1)/2/a))

Submission status: Wrong Answer

Solution code:
a=int(input())
if a%2==0:
    print(a/2)
else :
    print((a+1)/2/a)

Submission status: Wrong Answer

Solution code:
N = int(input())

print(N / (N // 2 + N % 2))

Submission status: Wrong Answer

Solution code:
N=int(input())

if N%2==0:
	print(1/2)
else:
	print((N+1)/2*N)

Submission status: Wrong Answer

Solution code:
N=int(input())

if N%2==0:
	print(1/2)
else:
	print((N+1)/2)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2 == 0:
    print(0.5)
elif N%2 == 1 and N != 1:
    print(0.6)
elif N == 1:
    print(1)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n==1:
	print(1)
elif n%2==0:
	print(.5)
else:
	print((n//2+1)/2)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n==1:
	print(1)
elif n%2==0:
	print(.5)
else:
	print(.6)

Submission status: Wrong Answer

Solution code:
N = int(input())
n= N/2 + 1/2
import math
a = math.floor(n)

print(a/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
odds = [i for i in range(1, n+1) if i % 2 != 0]
print(len(odds) // n)

Submission status: Wrong Answer

Solution code:
N = int(input())
n = N//2
print(n/N)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N % 2:
  print(0.5)
else:
  print((N+1)/2*N)

Submission status: Wrong Answer

Solution code:
n = int(input())
 
p = int((n+1) / 2)
print(p)
p /= n
 
print(p)

Submission status: Wrong Answer

Solution code:
n = int(input())

p = (n+1) / 2 / n

print(p)

Submission status: Wrong Answer

Solution code:
n=int(input())
m=n//2
print((n-m)/2)

Submission status: Wrong Answer

Solution code:
N = int(input())
print(((N // 2) + 1) / N)

Submission status: Wrong Answer

Solution code:
n = int(input())
print((n//2)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
print((n // 2) / n)

Submission status: Wrong Answer

Solution code:
n=int(input())
count =0
for i in range(n):
  if i%2==1:
    count+=1
print(count/n-1)

Submission status: Wrong Answer

Solution code:
n=int(input())
count =0
for i in range(n):
  if i%2==1:
    count+=1
print(count/n)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==0:
  print(1/2)
else:
  print((2*n-1)/(2*n))

Submission status: Wrong Answer

Solution code:
n=int(input())
if n==0:
  print(1/2)
else:
  print((2*n-1)/(2*n))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n%2 == 0:
	print(format(1, '.10f'))
else:
	print(format((n//2  + 1)/ n, '.10f'))

Submission status: Wrong Answer

Solution code:
n = int(input())

num = 1
flag = 0
for i in range(n):
  if num % 2 == 0:
    flag += 1
  num += 1

print(flag/n)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==0:
	print(1/2)
else:
  	print((n-1)/2/n)

Submission status: Wrong Answer

Solution code:
a = [int(x) for x in input().split(" ")]
print("bust") if sum(a) >= 22 else print("win")

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
  print(1)
elif n % 2 == 0:
  print(0.5)
else:
  print(0.6)

Submission status: Wrong Answer

Solution code:
a=int(input())
d=0
for num in range(a+1):
    c=num%2
    if c==1:
        d+=1
print(d)

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = 0.5 if N % 2 == 0 else 1

print(ans)

Submission status: Wrong Answer

Solution code:
n = float(input())
ans = 0
if n % 2 == 0:
    ans = (n / 2) / n
else:
    ans = (n / 2 + 1) / n

print('{:.10f}'.format(ans))

Submission status: Wrong Answer

Solution code:
n = int(input())
print(0.5000000000) if (n % 2 == 0) else print(1.000000000) if (n < 2) else print(0.5 + 1 / n)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n%2==0:
    print(n//2)
else:
    print(n//2+1)

Submission status: Wrong Answer

Solution code:
start = 0
end = int(input("Enter a number: "))
count = 0
for num in range(start, end + 1):
    if num % 2 != 0:
        count += 1
print(format(count/end, '.10f'))

Submission status: Wrong Answer

Solution code:
start = 0
end = int(input("Enter a number: "))
count = 0
for num in range(start, end + 1):
    if num % 2 != 0:
        count += 1
print(count/end)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 2 ==0:
    res = float(0.5)
elif N == 1:
    res = float(1)
else:
    res = float(0.6)
print(res)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N >=1 or N<= 100:
    if N % 2 ==0:
        res = float(0.5)
    elif N == 1:
        res = float(1)
    else:
        res = float(0.6)

print(res)

Submission status: Wrong Answer

Solution code:
s = int(input())
count = 0
if s % 2 == 0:
    count = s // 2
    print((count/s) * (10 ** -5))
else:
    print((((s//2) + 1)/s) * (10 ** -5))

Submission status: Wrong Answer

Solution code:
try:
	num = int(input("Enter the number: "))
	if num % 2 == 1:
		odd_num = int(num / 2 + 1)
		# print(odd_num)
		# getcontent().prec = 10
		perc = odd_num / num
	else:
		odd_num = int(num / 2)
		# getcontent().perc = 10
		perc = odd_num / num
	print('{0:.10f}'.format(perc))

except Exception as e:
	print("Please enter numbers")


# from decimal import *
# num = int(input("ENter the number: "))
# num = 3
# getcontent().prec = 10
# division = Decimal(num) / Decimal(7)
# print(Decimal(division))

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%2==0:
  print(0.5)
else:
  print((N/2+1)/N)

Submission status: Wrong Answer

Solution code:
answer = 0
n = int(input())
if n % 2 == 0:
  answer = n/2
else:
  answer = (n/2) + 1
print(answer/n)

Submission status: Wrong Answer

Solution code:
N = int(input())
count = 0
for i in range(1,N):
  if(i%2!=0):
    count = count + 1
print(count/N)

Submission status: Wrong Answer

Solution code:
n = int(input())
print(str(round(n/2)/n))

Submission status: Wrong Answer

Solution code:
n= int(input())
y = round(n/2)
print(y/n)

Submission status: Wrong Answer

Solution code:
x= int(input())
y = round(x/2)
print(y/x)

Submission status: Wrong Answer

Solution code:
x=int(input())
print((x//2)/x)

Submission status: Wrong Answer

Solution code:
import numpy as np

Submission status: Wrong Answer

Solution code:
N = int(input())
S = N - N/2
result = S/N
print(format(result, '.6f'))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = N - N/2
result = S/N
print(format(result, '.10f'))

Submission status: Wrong Answer

Solution code:
N = int(input())
S = N - N/2
result =S/N
print(result)

Submission status: Wrong Answer

Solution code:
import math

N=int(input())
if(N==1):
  ans=1
elif(N%2==0):
  ans=1
else:
  ans=(math.floor(N/2)+1)/N
print(ans)

Submission status: Wrong Answer

Solution code:
N=int(input())
if(N==1):
  ans=1
elif(N%2==0):
  ans=1/2
else:
  ans=((N/2)+1)/N
print(ans)

Submission status: Wrong Answer

Solution code:
N=int(input())
if(N==1):
  ans=1
elif(N%2==0):
  ans=1/2
else:
  ans=2/3
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
print((N+1)/2*N)

Submission status: Wrong Answer

Solution code:
a = int(input())

if a % 2 == 1:
	tmp = a / 2 +1
else:
	tmp = a / 2 

print('{:.6f}'.format(tmp / a))

Submission status: Wrong Answer

Solution code:
a = int(input())

if a % 2 == 1:
	tmp = a / 2 +1
else:
	tmp = a / 2 

print(tmp / a)

Submission status: Wrong Answer

Solution code:
a = int(input())

if a // 2 == 1:
	tmp = a / 2 +1
else:
	tmp = a / 2 

print(tmp / a)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n%2==0:
  print(2/1)
else:
  print((n//2+1)/n)

Submission status: Wrong Answer

Solution code:
n = float(input())

if n % 2 == 0:
  print(2/1)
else:
  print((n//2+1)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n % 2 == 0:
  print(2/1)
else:
  print((n//2+1)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
  print(float(1/1))
elif n % 2 == 0:
  print(float(2/1))
else:
  print(float(((n//2)+1)/n))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
  print(1/1)
elif n % 2 == 0:
  print(2/1)
else:
  print(((n//2)+1)/n)

Submission status: Wrong Answer

Solution code:
N = int(input())
i = (N//2 + 1) / N
if N / 2 ==0:
    print(1/2)
else:
    print(i)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N / 2 ==0:
    print(1/2)
else:
    print((N//2 + 1) / N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N&1: print(2/(N+1))
else: print(2/N)

Submission status: Wrong Answer

Solution code:
a = int(input())
if a % 2 == 0:
  p = a /2
else:
  p = (a - 1) /2 /a
print(p)

Submission status: Wrong Answer

Solution code:
n=int(raw_input())
d=(n+1)/2
r=float(n)/d
print '%.10f' % r

Submission status: Wrong Answer

Solution code:
N = int(input())
import math
print(math.ceil(N//2)/N)

Submission status: Wrong Answer

Solution code:
N = int(input())
print(((N//2)+1)/N)

Submission status: Wrong Answer

Solution code:
N = int(input())
print((N//2)/N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 1:
  newN = (N-1)/2
  print(newN/N)
else:
  print(1/2)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 1:
  print((N-1)/2*N)
else:
  print(1)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 1:
  print((N-1)/2*N)
else:
  print(1/2)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 1:
  print(((N-1)/2)/N)
else:
  print((N/2)/N)

Submission status: Wrong Answer

Solution code:
n = int(input())
x = 0
 
for i in range(1, n+1):
  if i % 2 == 0:
    x += 1
    
answer = float(x) / n
 
print(answer)

Submission status: Wrong Answer

Solution code:
n = int(input())
x = 0

for i in range(n+1):
  if i % 2 == 0:
    x += 1
    
answer = float(x) / n

print(answer)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2==0:
  print(0.5)
else:
  print((n-1)/(2*n))

Submission status: Wrong Answer

Solution code:
N = int(input())
print((N // 2 + N % 2) / 2)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n%2==0:
    print(n/2/n)
else:
    print(((n/2)+1)/n)

Submission status: Wrong Answer

Solution code:
N = int(input())
if(N % 2 == 0):
    print(0.50)
elif(N == 1):
    print(1.0)
else:
    print((N//2)/N)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 2 == 0:
    print(n//2)
else:
    print((n+1)//2)

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%2==0:
  print(N//2)
else:
  print(N//2+1)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 2 == 0:
  print(0.5)
else:
  print((n//2)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
print(1-(n//2)/2)

Submission status: Wrong Answer

Solution code:
N = float(input())
print((N-2) / N) if N % 2 == 0 else print(((N+1)/2) / N)

Submission status: Wrong Answer

Solution code:
N = int(input())
print((N-2) / N) if N % 2 == 0 else print(((N+1)/2) / N)

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
print(math.floor(N/2)/N)

Submission status: Wrong Answer

Solution code:
N = int(input())
print(int(N/2)/N)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 2 == 0:
  ans = (n/2)/n
else:
  ans = ((n-1)/2)+1/n
print(ans)

Submission status: Wrong Answer

Solution code:
##A
n = int(input())
if n % 2 == 0:
    print(float(0.5))
else:
    print((n+1)/2)

Submission status: Wrong Answer

Solution code:
n = int(input())
c = 0
for i in range(1,n+1):
    if i % 2 == 1:
        c += 1

print(float(c))

Submission status: Wrong Answer

Solution code:
n = int(input())
print((n // 2 + 1)/n)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

N = int(input())
a = 0

if N % 2 == 0:
    a = 1 / 2
    print(a)
elif N == 1:
    a = 1 / 1
    print(a)
else:
    a = (N - 2) / N 
    a = round(a, 10)
    print(a)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

N = int(input())
a = 0
if N % 2 == 0:
    a = 1 / 2
    print(a)
elif N == 1:
    a = 1 / 1
    print(a)
else:
    a = (N - 2) / N
    print(a)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

N = int(input())

if N % 2 == 0:
    print(0.5)
elif N == 1:
    print(1)
else:
    a = (N - 2) / N
    print(a)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n != 1:
    x = (n-n%2)/2
    print(x/n)
else:
    x = n
    print(x/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n != 1:
    x = (n-n%2)/2
else:
    x = n
print(x/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
x = (n-n%2)/2
print(x/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n % 2 == 0:
    ans = (n / 2) / n
else:
    ans = ((n - 1) / 2) / n
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2:
    print(N+1/(2*N))
else:
    print(0.5)

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%2==0:
  print(int(N/2))
else:
  print(int((N+1)/2))

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%2==0:
  print(N/2)
else:
  print((N+1)/2)

Submission status: Wrong Answer

Solution code:
a = int(input())
if a%2 == 0:
    print("0.5")
else:
    b = (a+1)%2%a
    print(b)

Submission status: Wrong Answer

Solution code:
n = float(input())
print((n - (n/2)) / n )

Submission status: Wrong Answer

Solution code:
n = int(input())
print((n - (n/2)) / n )

Submission status: Wrong Answer

Solution code:
n = int(input())
print(float((n - (n/2)) / n ))

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 0:
  ans = (0.5)
else:
  ans = (N // 2) +1
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n % 2 == 0:
  print("0.5000000000")
elif n % 2 == 1:
  print((n + 1) / 2 * n)

Submission status: Wrong Answer

Solution code:
a = int(input())
if a==1:
    print(1.0000000000)
elif a%2 == 0:
    print(0.5000000000)
else:
    print(0.6000000000)

Submission status: Wrong Answer

Solution code:
a = int(input())
if a==1:
    print(1.0)
elif a%2 == 0:
    print(0.5)
else:
    print(0.6)

Submission status: Wrong Answer

Solution code:
val = int(input())
print((val // 2 + 1) / val)

Submission status: Wrong Answer

Solution code:
_=int(input())
print((_+_%2)/_)

Submission status: Wrong Answer

Solution code:
n = int(input())

a = 100

if n / 100:
    print(a / n)

Submission status: Wrong Answer

Solution code:
n=int(input())
if n%2:
  print(2/3)
else:
  print(1/2)

Submission status: Wrong Answer

Solution code:
import math

N = int(input())
print(math.floor(N/2)/N)

Submission status: Wrong Answer

Solution code:
n = int(input())
odd = 0
for i in range(n+1):
  if i%2:
    odd += 1
print(int(odd/n))

Submission status: Wrong Answer

Solution code:
N = int(input())
odd = 0
if (N%2==0):
   odd = N/2
else:
   odd = N/2+1
prob = odd/N
print(prob)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n%2 == 0:
    print(n/2)
else:
    print(n/2 + 1/n)

Submission status: Wrong Answer

Solution code:
a=int(input())
c=0
for i in range(a):
    
    if i//2 ==0:
        continue
    else:
        c+=1
print('{:.10f}'.format(c/a))

Submission status: Wrong Answer

Solution code:
#A, B = map(int, input().split())
import random
N = int(input())
count = 0
for i in range(1, N + 1):
    if i % 2 == 1:
        ++count
print(count/N)

Submission status: Wrong Answer

Solution code:
a=int(input())
c=0
for i in range(a):
    
    if i//2 ==0:
        continue
    else:
        c+=1
print('{:.9f}'.format(c/a))

Submission status: Wrong Answer

Solution code:

import random
N = int(input())
count = 0
for i in range(1, N + 1):
    if i % 2 == 0:
        ++count
print(count/N)

Submission status: Wrong Answer

Solution code:
a=int(input())
c=0
for i in range(a):
    
    if i//2 ==0:
        continue
    else:
        c+=1
print(c/a)

Submission status: Wrong Answer

Solution code:
num = int(input())
odd = 0
for n in range(1, num):
  if n % 2 == 1:
    odd += 1
print(odd/num)

Submission status: Wrong Answer

Solution code:
n = int(input())
import random
 
print((n//2)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
import random
 
if n % 2 == 0:
  print(1/2)
else:
  print((n-1)/(2*n))

Submission status: Wrong Answer

Solution code:
n = int(input())
import random
 
if n % 2 == 0:
  print(0.5)
else:
  print((n-1)/(2*n))

Submission status: Wrong Answer

Solution code:
a=int(input())
b=a//2
c=b/a
print(c)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2 == 0:
    print((N/2)/N)
else:
    print((N+1/2)/N)

Submission status: Wrong Answer

Solution code:
a = int(input())

if a == 1:
    print(1/a)
if a % 2 == 0:
    print(1/2)
else:
    print(((a+1)/2)/a)

Submission status: Wrong Answer

Solution code:
a = int(input())

if a == 1:
    print(1/a)
if a % 2 == 0:
    print(1/2)
else:
    print(((a-1)/2)/a)

Submission status: Wrong Answer

Solution code:
N = int(input())

a = list(range(1, N+1))
b = list(range(1,N+1,2))

sum_a = sum(a)
sum_b = sum(b)

print(sum_b/sum_a)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 0:
  print(0.5)
else:
  print((N+1)/2*N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 0:
  print(N/(2*N))
else:
  print((N+1)/2*N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 0:
  print((N/2)*N)
else:
  print((N+1)/2*N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 0:
  print(N/2*N)
else:
  print((N+1)/2*N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N%2 == 0:
  print(1/2)
else:
  print((N+1)/2*N)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N/2 == 0:
  print(1/2)
else:
  print((N+1)/N)

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%2==0:
  print((N/2)/N)
else:
  print(((N+1)/2)/2)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2 == 0:
    print(N/2)
else:
    print(((N-1)//2+1)/N)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N%2 == 0:
    print(N/(N*2))
else:
    print((N-1)/(2*N))

Submission status: Wrong Answer

Solution code:
N=int(input())
Ans=0
if N%2==0 : Ans=0.5
else :
    Ans=(N-1)/2

print(Ans)

Submission status: Wrong Answer

Solution code:
print(20000)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N % 2 == 1:
  print(((N+1)/2)/N)
else:
  print((N/2)/2)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N == 1:
  print(1.0000000000)
elif N % 2 == 0:
  print(0.5000000000)
elif N % 2 != 0:
  print(0.6000000000)

Submission status: Wrong Answer

Solution code:
N = int(input())
if N == 1:
  print(1.0000000000)
elif N % 2 == 0:
  print(0.5000000000)
else:
  print(0.6000000000)

Submission status: Wrong Answer

Solution code:
N=int(input())

if N%2==0:
    print(N//2)
else:
    print(N//2+1)

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=float(0)
if n%2==0:
    ans=1/2
else:
    ans=(n//2)+1

print(ans)

Submission status: Wrong Answer

Solution code:
a = int(input())
result =(a//2)/2
print(result)

Submission status: Wrong Answer

Solution code:
a = int(input())
result =(a//2)/a
print(result)