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())
if n % 2:
  print((n+1) / (n * 2))
else:
  print(n / 2)

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    if (N < 0 or N > 100):
        return 0
    array_len = len([N for i in range(1, N+1) if(i%2==1)])
    result = array_len / N
    return result
if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(raw_input())
if a % 2:
  print float(1 / 2)
else:
  print float((a - (a - 1) / 2) / a)

Submission status: Wrong Answer

Solution code:
n=int(input())

print((n+1)//2)

Submission status: Wrong Answer

Solution code:
import math
def MAP(): return list(map(int,input().split()))
def INT(): return int(input())
def FLOAT(): return float(input())
MOD = 10**9+7

n = INT()
if n%2==0:
    print(n/2)
else:
    print(math.ceil(n/2)/n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

print((n//2+1)/n)

Submission status: Wrong Answer

Solution code:
n =int(input())
a = 0.000000
b = 0.000000

for i in range(1,n+1):
    if i%2 == 0:
        a += 1
    else:
        b += 1

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if (n % 2 == 0):
  answer = (n/2) / n

else:
  answer = (n / 2 + 1) / n

print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    if(N==1):
        print('{:.10f}'.format(1.0))
        return
    if(N%2==0):
        print('{:.10f}'.format(0.5))
    else:
        result = (N - round(N/2))/N
        print('{:.10f}'.format(result))

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
Ns = input()
N = int(Ns)
if(N % 2 == 1):
  if(N == 1):
    print('{:.9f}'.format(N))
  else:
    print('{:.9f}'.format((N-1)/N))
else:
  print('{:.9f}'.format(1/2))

Submission status: Wrong Answer

Solution code:
N=input()
N=int(N)
number = 0
for i in range(1,N+1):
    if i%2 == 1:
        number = number + 1
    else:
        pass
#print(number)
number/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:
Ns = input()
N = int(Ns)
if(N % 2 == 1):
  if(N == 1):
    print('{:.7f}'.format(N))
  else:
    print('{:.7f}'.format((N-1)/N))
else:
  print('{:.7f}'.format(1/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = int(input())
b = 0.0
if a == 1:
  b = 1.00000000000
elif a % 2 == 0:
  b = 0.50000000000
else:
  b = (((a+1)/2)-1)/a
print(b)

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a = float(input())
b = 0.0
if a == 1:
  b = 1.00000000000
elif a % 2 == 0:
  b = 0.50000000000
else:
  b = (((a+1)/2)-1)/(a+1)/2
print(b)

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:
a = int(input())
b = 0.0
if a == 1:
  b = 1.00000000000
elif a % 2 == 0:
  b = 0.50000000000
else:
  b = (((a+1)/2)-1)/(a+1)/2
print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np

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

Submission status: Wrong Answer

Solution code:
def A_OddsofOddness():
    N = int(input())
    ans = N // 2
    if N % 2 == 1:
        ans = (N // 2 + 1.0) / N
    print(ans)
if __name__ == "__main__":
    A_OddsofOddness()

Submission status: Wrong Answer

Solution code:
import numpy as np

a = int(input())
if a%2 == 0:
    print(0.5)
else:
    print((a//2)/a)

Submission status: Wrong Answer

Solution code:
a = int(input())
b = 0.0
if a == 1:
  b = 1.00000000000
elif a % 2 == 0:
  b = 0.50000000000
else:
  b = (a/2 - 1) / a/2
print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np

a = int(input())
if a%2 == 0:
    print(0.5)
else:
    print((a/2)/a)

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())
b = 0.0
if a == 1:
  b = 1.0
elif a % 2 == 0:
  b = 0.5
else:
  b = 0.6

Submission status: Wrong Answer

Solution code:
N = int(input())

if N % 2 == 0:
    print(0.5)

elif N == 1:
    print(1)
else:
    print(0.6)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
    print('{:.10f}'.format(1.0000000000))
elif n%2 ==1:
    print('{:.10f}'.format(0.6000000000))
else:
    print('{:.10f}'.format(0.5000000000))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
  ans = 1.0000000000
elif n % 2 == 1:
  ans = ((n-1)/2)/n
elif n % 2 == 0:
  ans = n/2
print('{:.6f}'.format(ans))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
    print(1/1)
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(1/2)
else:
  print((n+1)/2*n)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
  ans = 1.0000000000
elif n % 2 == 1:
  ans = ((n-1)/2 )/n
else:
  ans = 0.5000000000
print('{:.9f}'.format(ans))

Submission status: Wrong Answer

Solution code:
A = int(input())
list = []
ls = []
for i in range(A):
  if i%2 == 1:
    list.append(i)
  else:
    ls.append(i)
print(len(list)/len(ls))

Submission status: Wrong Answer

Solution code:
n=int(input())

a=0
for i in range(n):
  if i % 2 != 0:
    a+=1

print(a/n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
  ans = 1.0000000000
elif n % 2 == 1:
  ans = (n/2 - 1)/n
else:
  ans = 0.5000000000
print('{:.9f}'.format(ans))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
n=int(input())
print(1/2 if n % 2 == 0 else (n-1)/(2*n))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
  ans = 1.0000000000
elif n % 2 == 1:
  ans = (n - 2)/n
else:
  ans = 0.5000000000
print('{:.9f}'.format(ans))

Submission status: Wrong Answer

Solution code:
def _input():
    n = int(input())
    return n

def probability(number):
    odd = 0
    for i in range(1,number + 1):
        if i % 2 == 1:
            odd += 1
    return round(odd / number, 3)

if __name__ == "__main__":
    number = _input()
    print('{:.9f}'.format(probability(number)))

Submission status: Wrong Answer

Solution code:
n = int(input())
even = round(n / 2, 0)
print((n - even) / n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def _input():
    n = int(input())
    return n

def probability(number):
    odd = 0
    for i in range(1,number + 1):
        if i % 2 == 1:
            odd += 1
    return round(odd / number, 2)

if __name__ == "__main__":
    number = _input()
    print('{:.9f}'.format(probability(number)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:


a = int(raw_input())
b = 1

if (a%2 != b%2):
    print(0.5)
else:
    r = max(a,b) - min(a,b) + 1
    res = 0.0
    odd = (a // 2) + 1
    print (float(odd/a))

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    if(N==1):
        print('{:.10g}'.format(1.0))
        return
    if(N%2==0):
        print('{:.10g}'.format(0.5))
    else:
        result = (N - round(N/2))/N
        print('{:.10g}'.format(result))

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def _input():
    n = int(input())
    return n

def probability(number):
    odd = 0
    for i in range(1,number + 1):
        if i % 2 == 1:
            odd += 1
    return round(odd / number, 2)

if __name__ == "__main__":
    number = _input()
    print('{:.10f}'.format(probability(number)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

print(1-int(3/2)/3)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal
n = int(input())
if n == 1:
    print(1)
if n % 2 == 0:
    print(0.5)
else:
    print(Decimal(1/(2*n))+Decimal(0.5))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def _input():
    n = int(input())
    return n

def probability(number):
    odd = 0
    for i in range(1,number + 1):
        if i % 2 == 1:
            odd += 1
    return round(odd / number, 1)

if __name__ == "__main__":
    number = _input()
    print('{:.10f}'.format(probability(number)))

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    if(N==1):
        print(1.0)
        return
    if(N%2==0):
        print(0.5)
    else:
        result = (N - round(N/2))/N
        print(result)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = 0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def _input():
    n = int(input())
    return n

def probability(number):
    odd = 0
    for i in range(1,number + 1):
        if i % 2 == 1:
            odd += 1
    return round(odd / number, 1)

if __name__ == "__main__":
    number = _input()
    print('{:.7f}'.format(probability(number)))

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = 0

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

Submission status: Wrong Answer

Solution code:
n = float(input())

if n % 2 == 0:
  print("{:.10g}".format(n/2))
elif n % 2 != 0:
  print("{:.10g}".format((n+1)/2))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n==1:
    ans = 1
elif n%2==0:
    ans = 0.5
else:
    ans = 0.6

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
num = N
if N % 2 == 1:
  num =+ 1
ki_num = num / 2
kaku_ritsu = ki_num / N
print('{:.10f}'.format(kaku_ritsu))

Submission status: Wrong Answer

Solution code:
N = int(input())
print("{0:10f}".format(1-2/N))

Submission status: Wrong Answer

Solution code:
A = input()
N = int(A)


if N ==1:
    a = 1
elif N%2 == 0:
    a = 0.5
    a = float(a)
elif N%2 == 1:
    a = (N/2 + 1)/N

print(a)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n % 2 == 0:
  print("{:.10g}".format(n/2))
elif n % 2 != 0:
  print("{:.10g}".format((n+1)/2))

Submission status: Wrong Answer

Solution code:
A = input()
N = int(A)


if N ==1:
    a = 1
elif 1<=N and N<=100 and N%2 == 0:
    a = 0.5
    a = float(a)
elif 1<=N and N<=100 and N%2 == 1:
    a = (N/2 + 1)/N

print(a)

Submission status: Wrong Answer

Solution code:
N = int(input())

print( 1-round(N/2)/N)

Submission status: Wrong Answer

Solution code:
n = int(input())

L = []

import sys
if n ==0:
    print(0.0)
    sys.exit()

for val in range(n):
    if val % 2 ==1:
        L.append(val)
print(len(L)/n)

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
if N%2==0:
    print((2/N)/N) 
elif N==1:
    print(N/N)
else:
    round_number=math.ceil(N/2)
    print(round_number/N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
if N%2==0:
    print((2/N)/N) 
elif N==1:
    print(N/N)
else:
    round_number=math.ceil(N/2)
    print(round_number/N)
    print(round_number)

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())
num = 0
for i in range(1,N):
  if i%2==1:
    num += 1
print(float(num/N))

Submission status: Wrong Answer

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

def Odd_Judge(n):
    odd_num = int(n/2) + 1
    return odd_num / n

if __name__ == "__main__":
    n = int(input())
    print(Odd_Judge(n))

Submission status: Wrong Answer

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

print('{:.11f}'.format(n/count))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N=int(input())
if N%2==0:
    print(0.5) 
elif N==1:
    print(1.0)
else:
    round_number=math.ceil(N/2)
    print(round_number/N)
    print(round_number)

Submission status: Wrong Answer

Solution code:
n=int(input())
if(n%2==0):
    print('0.5')
else:
    print('{0}'.format(0.5-1/n))

Submission status: Wrong Answer

Solution code:
a = input()
if int(a) % 2 == 0:
  c = 0.5
else:
  c = 0.4
  
print(c)

Submission status: Wrong Answer

Solution code:
N = int(input())
num = 0
for i in range(1,N):
  if i%2==1:
    num += 1
print(num/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:
import random
n = int(input())
x = random.randint(1,n)
if n % 2 ==0:
  print(0.5)
else:
  count = n//2
  print(count/n)

Submission status: Wrong Answer

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

print('{:.11g}'.format(n/count))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def prob_odd(N):
    number = 0
    for i in range(1,N+1):
        if i%2 == 1:
            number = number + 1
        else:
            pass
    #print(number)
    return number/N

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    if(N==1):
        print(1)
        return
    if(N%2==0):
        print(0.5)
        return
    else:
        result = (N - round(N/2))/N
        print(result)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal
n = int(input())
if n == 1:
    print(1)
if n % 2 == 0:
    print(0.5)
else:
    print(Decimal(n+1)/Decimal(2*n))

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

# -*- coding: utf-8 -*-
N = int(raw_input())

count = 0.0

for i in xrange(1,N+1):
    print i
    if i%2 != 0:
        count += 1
    
print("{0:.10f}".format(count/N))

Submission status: Wrong Answer

Solution code:
import random
n = int(input())
x = random.randint(1,n)
if n % 2 ==0:
  print(0.5)
else:
  count = (1+n)*n*0.5
  counts = count//2
  print(counts/count)

Submission status: Wrong Answer

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

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())
b = a//2
print(b/a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(n/count)

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
    print('{:.10f}'.format(0.5000000000))
elif n%2 ==1:
    print('{:.10f}'.format(0.6000000000))
else:
    print('{:.10f}'.format(0.5000000000))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
    print(1)
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:
a = int(input())

if (a % 2 == 0):
    print("0.50000000")
else:
    b = (a // 2) - 1
    c = b / a
    print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

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:
a = int(input())
b = a//2
print(b)
print(b/a)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
    print(1.0)
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(float(N/2*N))
else:
  print(float((N+1)/2*N))

Submission status: Wrong Answer

Solution code:
N=int(input())
ans=0
A=0

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

ans =  (N//2 + 1)/ N
print(ans)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
# Your code here!

# -*- coding: utf-8 -*-
N = int(raw_input())

count = 0.0

for i in xrange(1,N+1):
    print i
    if i%2 != 0:
        count += 1
    
print count/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(float(N/2*N))
else:
  print(float((N+1)/2*N))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n % 2 == 2:
  print(0.5)
else:
  print('{:.100g}'.format(1 // -(n / 2)))

Submission status: Wrong Answer

Solution code:
n = int(input())
if n == 1:
    print(1)
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 == 1:
  print (n)
else:
  if n % 2 == 1:
    print((n/2+1)/n)
  else:
    print(1/2)

Submission status: Wrong Answer

Solution code:
n =int(input())
a = 0
b = 0

for i in range(n+1):
    if i%2 == 0:
        a += 1
    else:
        b += 1

print(b/(a+b))

Submission status: Wrong Answer

Solution code:
n = int(input())

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

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(2/n)
else:
	print((n//2+1)/n)

Submission status: Wrong Answer

Solution code:
N=int(input())
ans=0
A=0

if N%2==1:
    A=int(N/2)+1
    ans=A/N
    print(ans)
else:
    ans=N/2
    print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

if N % 2 == 1:
  print('{:.5g}'.format(((N-1)/2+1)/N))
else:
  print('{:.5g}'.format(N/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
if n & 1:
    print(0.5)
else:
    print((n/2+1)*1.0/n)

Submission status: Wrong Answer

Solution code:

n = int(input())
if n == 1:
    print('{:.10g}'.format(0.5000000000))
elif n%2 ==1:
    print('{:.10g}'.format(0.6000000000))
else:
    print('{:.10g}'.format(0.5000000000))

Submission status: Wrong Answer

Solution code:
ako=int(input())
ask=ako/+1
answer=ask/ako
print(answer)

Submission status: Wrong Answer

Solution code:
n =int(input())
a = 0
b = 0

for i in range(n):
    if i%2 == 0:
        a += 1
    else:
        b += 1

print(b/(a+b))

Submission status: Wrong Answer

Solution code:
X = int(input())
a = 0
for i in range(X):
  if i%2!=0:
    a = a+1

print(a/X)

Submission status: Wrong Answer

Solution code:
def main():
    N = int(input())
    if(N==1):
        print(1)
        return
    if(N%2==0):
        print(0.5)
    else:
        result = (N - round(N/2))/N
        print(result)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
    n = int(input())

    if n % 2 == 0:
        print(0.5)
    else:
        print(float(int(n / 2)) / n)

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
n = int(input())

if n==1:
    ans = 1.0000000000
elif n%2==0:
    ans = 0.5000000000
else:
    ans = 0.6000000000

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
from copy import deepcopy
from sys import exit,setrecursionlimit
import math
from collections import defaultdict,Counter,deque
from fractions import Fraction as frac
import bisect
import sys
import logging
import heapq
logging.basicConfig(level=logging.DEBUG)

input = sys.stdin.readline

setrecursionlimit(1000000)

MOD = 10**9+7

def main():
    N=int(input())
    print(2.0/N if N%2==0 else (N-N//2)/N)

main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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 + 1)/N)

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:
ako=int(input())
ask=ako/2
answer=ask/ako
print(answer)

Submission status: Wrong Answer

Solution code:
a=int(input())
b=0
if(a<=2):
    b=1
elif(a<=4):
    b=2
elif(a<=6):
    b=3
elif(a<=8):
    b=4
else:
    b=5
print(b/a)

Submission status: Wrong Answer

Solution code:
n = int(input())
#a_L = list(map(int,input().split()))

#print()
if n !=1 and n !=0:
    print(n//2/n)
elif n==1:
    print(1.0)
else:
    print(0.0)
#elif

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())

b = 0

for i in range(n):
    if (i+1) % 2 != 0:
        b +- 1
c = n-b
print(c/n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N  = int(input())
s = [i for i in range(1,N + 1)]
cnt =0.0
for i in s:
    if i % 2 == 0:
        cnt += 1
tmp = float(len(s))
print(float(cnt/tmp))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
#x, y = map(int,input().split())
#li = list(map(int, input().split()))
if n%2 == 0:
    print(1/2)
elif n == 1:
    print(1)
elif n%2 ==1:
    print((n-1)/(2*n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

if N == 1:
    print(1.0000000000)

elif N % 2 == 1:
    print(0.6000000000)

elif N % 2 == 0:
    print(0.5000000000)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n==1:
    ans = 1
elif n%2==0:
    ans = 0.5
else:
    ans = 0.6

print(ans)

Submission status: Wrong Answer

Solution code:

n = int(input())

b = 0

for i in range(n):
    if (i+1) % 2 != 0:
        b +- 1

print(b/n)

Submission status: Wrong Answer

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