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:
import math
a = float(input())
result = 1 if a == 1 else math.floor(a/2)/a
print(result)

Submission status: Wrong Answer

Solution code:
import math
a = int(input())
result = 1 if a == 1 else math.floor(a/2)/a
print(result)

Submission status: Wrong Answer

Solution code:
n=int(input())
print('{:.8f}'.format((n//2)/n))

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%2==0:
  print (0.5)
else:
  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())

number = 0
#奇数の数を数える
for i in range(1, N+1):
    if i % 2 == 0:
        number += 1

result = number / N

print(result)

Submission status: Wrong Answer

Solution code:
N=int(input())
if (N+1)/2 == N/2:
  p=float(0.50000000)
else:
  p=float((N-1)/(2*N))
print(p)

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:
def odds_of_oddness():
	
	N = int(input())
	
	tmp = 0 
	for i in range(N):
		if i % 2 == 1:
			tmp += 1
				
	print(float(tmp)/N)
	
	return 

if __name__=='__main__':
	
	odds_of_oddness()

Submission status: Wrong Answer

Solution code:
import numpy as np
N = int(input())
print(np.ceil(5/2)/5)

Submission status: Wrong Answer

Solution code:
N = int(input())
ans = len(list(range(1,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(0.6)

Submission status: Wrong Answer

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

print(counter)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

odd_cnt = 0

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

print(odd_cnt / n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k=int(input())

list=[]
for i in range(k):
  if i%2==1:
    list.append(1)
  else:
    pass
num=len(list)
print(num/k)

Submission status: Wrong Answer

Solution code:
import math
a = int(input())
math.ceil(a/2) / 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())
odd=0
for i in range(n):
  if i%2!=0:
    odd+=1
 
print(odd/n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
def odd(N):
    if(N == 1):
        return 1.0
    if(N % 2 == 0):
        return 5.0
    else:
        return ((N-1)/2+1)/N

  
print(odd(N))

Submission status: Wrong Answer

Solution code:
n = int(input())


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

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
num_odd = lambda x: x/2 if x % 2 == 0 else x/2 + 1 
 
import fileinput
for line in fileinput.input():
    N = int(line.strip())
    print(num_odd(N) / N)

Submission status: Wrong Answer

Solution code:
num_odd = lambda x: x/2 if x % 2 == 0 else x/2 + 1 

import fileinput
for line in fileinput.input():
    try:
        N = int(line.strip())
    except:
        continue

    print(1.0 * num_odd(N) / N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
  ans = float(1)
  print(ans)
  exit()

if n % 2 == 1:
  ans = float(0.6)
  print(ans)
  exit()
  
ans = float(0.5)
print(ans)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
  ans = float(1)
  print(ans)
  exit()

if n % 2 == 1:
  ans = float(0.6)
  print(ans)
  exit()
  
ans = float(0.5)
print()

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=0
for i in range(n+1):
    if i%2==1:
        ans+=1
print('{:.5g}'.format(ans/n))

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=0
for i in range(n):
    if i%2==1:
        ans+=1
print('{:.5g}'.format(ans/n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

count = 0

for i in range(n):
    if i % 2:
        count += 1
    else:
        pass

print(count/n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
print(1)

Submission status: Wrong Answer

Solution code:
import random

N = input()
N = float(N)
w = N / 2
s = N % 2
ans = (w+s) / N
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import numpy as np
N=int(input())

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

Submission status: Wrong Answer

Solution code:
no=int(input())
n=no
c=0
while(n):
  if n == 0:
    print(c/n)
    break
  if n%2 == 1:
    c += 1
  n -= 1

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

print( N // 2 / N)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
print('{:.10f}'.format((math.floor(N/2))/N))

Submission status: Wrong Answer

Solution code:
import math
N = int(input())
print('{:.10f}'.format((N-(math.floor(N))/2)/N))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
print('{:.10f}'.format((N//2)/N))

Submission status: Wrong Answer

Solution code:
def filter_odd(x):
    return x % 2 == 1


def solve(N):
    odd_list = list(
        filter(filter_odd, range(1, N + 1)[::-1])
    )
    return len(odd_list)


N = int(input())

print(solve(N))

Submission status: Wrong Answer

Solution code:
a = int(input())

gusu = a // 2
ngusu = round(gusu)

if gusu > ngusu:
  kisu = ngusu + 1
else:
  kisu = ngusu

kakuritu = kisu // a 
print(kakuritu)

Submission status: Wrong Answer

Solution code:
def solve(N):
    odd_count = 0

    for x in range(1, N + 1)[::-1]:

        if x // 2 != 0:
            odd_count += 1

    if N == 1:
        return 1

    return odd_count / N


N = int(input())

print(solve(N))

Submission status: Wrong Answer

Solution code:
import sys


def solve(N):
    odd_count = 0

    for x in range(0, N)[::-1]:
        if x // 2 != 0:
            odd_count += 1

    if N == 1:
        return 1

    return odd_count / N


N = int(input())

print(solve(N))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
a = int(input())

print("{:.10f}".format((a // 2 + 1) / a))

Submission status: Wrong Answer

Solution code:
a = int(input())

print("{:.10f}".format((a // 2) / a))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

kisu = 0
gusu = 0

for i in range(1, N+1):
  if i % 2 == 1:
    kisu += 1
  else:
    gusu += 1
    
    
kakuritsu = kisu / (gusu + kisu)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import sys
n = input()
n = float(n)
ans = (n / n/2)/n
print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

kisu = 0
gusu = 0

for i in range(N):
  if i % 2 == 1:
    kisu += 1
  else:
    gusu += 1
    
kakuritsu = kisu / (gusu + kisu)

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

Submission status: Wrong Answer

Solution code:
N = int(input())

kisu = 0
gusu = 0

for i in range(N):
  if i % 2 == 1:
    kisu += 1
  else:
    gusu += 1
    
kakuritsu = kisu / (gusu + kisu)

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

Submission status: Wrong Answer

Solution code:
N = int(input())

kisu = 0
gusu = 0

for i in range(N):
  if i % 2 == 1:
    kisu += 1
  else:
    gusu += 1
    
kakuritsu = kisu / (gusu + kisu)

print('{:f}'.format(kakuritsu))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

N = int(input())

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

Submission status: Wrong Answer

Solution code:
N = int(input())

kisu = 0
gusu = 0

for i in range(N):
  if i % 2 == 1:
    kisu += 1
  else:
    gusu += 1
    
kakuritsu = kisu / (gusu + kisu)

print(kakuritsu)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
p = 0
for i in range(n+1):
    if i % 2 == 1:
        p += 1
print('{:.5}'.format(p/n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

ans = 0

if n % 2 == 1:
    ans = ((n - 1) / 2) / n
else:
    ans = (n / 2) / n

print(ans)

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

ans = 0

if n % 2 == 1:
    ans = ((n - 1) / 2) / n

else:
    ans = (n / 2) / n

print(ans)

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

ans = 0

if n % 2 == 1:
    ans = ((n - 1) / 2) / n

else:
    ans = 0.5000000000

print(ans)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n=int(input())

print(float(n/2))

Submission status: Wrong Answer

Solution code:
n=int(input())

print(n/2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from decimal import Decimal, ROUND_HALF_UP, ROUND_HALF_EVEN

N = int(input())

odd_count = (N//2+1)
print('{:.6f}'.format(odd_count/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())

print(int(N/2) + 1)

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

odd = [x for x in range(1,N+1,2)]
all = [x for x in range(1,N+1)]
print(sum(odd)/sum(all))

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

Solution code:
n=int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

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(2/n if n %2 ==0 else (n-n//2)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())

print((str(2/n))+("00000000") if n % 2 == 0 else str((n-n//2)/n) + "00000000")

Submission status: Wrong Answer

Solution code:
a = int(input('<< '))
k=0
for i in range(1,a+1):
  if i%2 == 1:
    k += 1
  v = k/a
print(v)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
import math

n = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import collections
import math

n = int(input())

a = len([i for i in range(n) if i%2 != 0])

c = ''
b = [i for i  in range(n)]

c = len(b)

print('{:.10f}'.format(a/c))

Submission status: Wrong Answer

Solution code:
N=int(input())
if N%2==0:
    print(0.5)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

count_odd = 0
total = 0

for i in range(N):
  i += 1
  total += 1
  if i % 2 == 1: 
    count_odd += 1
      
print(count_odd)
print(total)
print(float(count_odd / total))

Submission status: Wrong Answer

Solution code:
N=int(input())

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

else:
  s=float(((N-1)/2)/N)
  print(s)

Submission status: Wrong Answer

Solution code:
N = int(raw_input())
if N == 1:
  print 1
else:
  if N%2:
    print 0.6000000000
  else:
    print 0.5000000000

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def oddProb(N):
  if N==1:
    return 1
  else:
    if N%2==0:
      return 0.5
    else:
      return 0.6

Submission status: Wrong Answer

Solution code:
def oddProb(N):
  if N%2==0:
    return 0.5
  else:
    return 0.6

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math as m
N = int(input())
print(N)
odds = m.floor((N+1)/2)
print(odds/N)

Submission status: Wrong Answer

Solution code:
import math as m
N = list(map(int, input()))[0]
odds = m.floor((N+1)/2)
print(odds/N)

Submission status: Wrong Answer

Solution code:
import math as m
N = list(map(int, input()))[0]
odds = m.floor(N/2)+1
print(odds/N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
N = int(input())

print(math.ceil(N/2)/2)

Submission status: Wrong Answer

Solution code:
import random

int_N  = int(input())
i = 0
Kisu = 0

for i in range(int_N):
    if i % 2 == 1 :
        Kisu += 1

print(Kisu/int_N)

Submission status: Wrong Answer

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

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

probability = count / N

print(probability)

Submission status: Wrong Answer

Solution code:
n = int(input())

ans_lst = list()

for i in range(1, n+1):
    if i % 2 == 0:
        ans_lst.append(i)

print(len(ans_lst)/n)

Submission status: Wrong Answer

Solution code:
n = int(input())
answer = 0.0

if n == 1:
    answer = 1.0
elif n % 2 == 0:
    answer = 0.5
else:
    answer = (n - 2) / n

print(answer)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
even = 0
odd = 0

for i in range (1, N):
    if i % 2 == 0:
        even += 1
    else:
        odd += 1

print("{}".format(odd/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())
print((n+1)//(2*n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

numera = 0
for num in range(1, n+1):
    if num % 2 != 0:
        numera += num

print(numera/n)

Submission status: Wrong Answer

Solution code:
n = int(input())

denomi = 0
numera = 0
for num in range(1, n+1):
    #print(num)
    denomi += num
    if num % 2 != 0:
        numera += num

print(numera/denomi)

Submission status: Wrong Answer

Solution code:
a = int(input(""))

if int(a)%2 == 1:
        print(str(float(float((a/2)+1)/a)))
else:
        print(str(float(float(a/2)/a)))

Submission status: Wrong Answer

Solution code:
n = int(input())
num = list(range(0, n))
oddnum = list(range(1, n, 2))
print(len(oddnum) / len(num))

Submission status: Wrong Answer

Solution code:
# coding: utf-8

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

Submission status: Wrong Answer

Solution code:
import sys
N = int(sys.stdin.readline())

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

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())
n_even = int(N / 2)
n_odd = n_even + 1
chance = float(n_odd / N)
print(chance)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

odd =  n//2 + 1

print(odd/n)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(5)
odd = 0
for i in range (1, N+1):
    if i%2==1:
        odd += 1

print(odd/N)

Submission status: Wrong Answer

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

print(odd//N)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
x=input();
y=int(x)/2+1;
int(y)/int(x)

Submission status: Wrong Answer

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

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 = float(input())
answer = 0

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

Submission status: Wrong Answer

Solution code:
n=int(input())

if n%2==0:
  print("0.5")

else:
  a=n/2
  a+=1
  print(a/n)

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
    print("{:.10f}".format(1))
    exit()

if n%2 == 0:
    res = (n-(n/2))/n
else:
    res = (n-(n/2))/n

print("{:.10f}".format(res))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
    print("{:.10f}".format(1))
    exit()

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

print("{:.10f}".format(res))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
    print(str(1.).ljust(12,'0'))
    exit()

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

print(str(res).ljust(12,'0'))

Submission status: Wrong Answer

Solution code:
n = int(input())

if n == 1:
    print(1)
    exit

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

print(res)

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
import math

n=int(input())
ans=0

if n==1:
  ans=0
elif n%2==0:
  ans=0.5
else:
  ans=math.ceil(n/2)/n
  
print(ans)

Submission status: Wrong Answer

Solution code:
import math

n=int(input())
ans=0

if n==1:
  ans=0
elif n%2==0:
  ans=n/2
else:
  ans=math.ceil(n/2)/n
  
print(ans)

Submission status: Wrong Answer

Solution code:
N = int(input())

a = (N - N / 2) / N

print(a)

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())
print (N//2 + N%2)

Submission status: Wrong Answer

Solution code:
import math
a=int(input())
b=math.floor(float(a/2))
print({},format(float((a-b)/a)))

Submission status: Wrong Answer

Solution code:
import math
a=int(input())
b=math.floor(a/2)
print({},format((a-b)/a))

Submission status: Wrong Answer

Solution code:
import math
a = int(input())
b = math.floor(a/2)
print({},format((a-b)/a))

Submission status: Wrong Answer

Solution code:
a = int(input())
import math
b = math.floor(a/2)
c = a-b
print({},format(c/a))

Submission status: Wrong Answer

Solution code:
a = int(input())
import math
b = math.floor(a/2)
c = a-b
print('{}',format(c/a))

Submission status: Wrong Answer

Solution code:
a = int(input())
import math
b = math.floor(a)
c = a-b
print('{}',format(c/a))

Submission status: Wrong Answer

Solution code:
import math

n=int(input())
print(math.ceil(n/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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())
if N%2 == 0:
  res = int(N/2)
if N%2 == 1:
  res = int(N/2)+1
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

Solution code:
number = int(input())
odd_num = number // 2 + 1
percent = odd_num / number
print(percent)

Submission status: Wrong Answer

Solution code:
#attcorder problem 142A
N=input()
a=0
N=int(N)

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

Submission status: Wrong Answer

Solution code:
N=input()
a=0
N=int(N)
for i in range(1,N+1):
    if 0<=N<=100 and i%2==0:
        a+=1  
        print(a/(N))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n  = int(input())

if n%2==0:
 print("{0:.6f}".format(n/2))
else:
  print("{0:.6f}".format((n+1)/2*n))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input())
i=1
c=0
while(i<=n):
  if i%2!=0:
    c+=1
  i+=1
d=n/i
print(d)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

N = float(input("N: "))

print('{:.10f}'.format(1-math.floor(N/2)/N))

Submission status: Wrong Answer

Solution code:
N = float(input("N: "))

if (N % 2 == 0) :
    print('{:.10f}'.format(N/(2 * N)))
else :
    print('{:.10f}'.format((((N-1)/2)+1)/N))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n=int(input())
ans=n%2
ans

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) / 2)

Submission status: Wrong Answer

Solution code:
N = int(input())

print(round(N / 2) / N)

Submission status: Wrong Answer

Solution code:
n = int(input())

cnt = 0
for i in range(1, n + 1):
    if i % 2 != 0:
        cnt += 1
print(cnt)
print(cnt / float(n))

Submission status: Wrong Answer

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


if __name__ == "__main__":
    resolve()

Submission status: Wrong Answer

Solution code:
a = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
if __name__ == "__main__":
    N = int(input())
    tmp = int()
    for i in range(1,N+1):
        if i % 2 == 0:
            continue
        else:
            tmp+=1
            print(tmp)
    print(tmp/N)

Submission status: Wrong Answer

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