Problem:


Score : 100 points

Problem Statement

Find the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive). The order does not matter.

Constraints

2\leq K\leq 100

K is an integer.

Input

Input is given from Standard Input in the following format:

K

Output

Print the number of ways to choose a pair of an even number and an odd number from the positive integers between 1 and K (inclusive).

Sample Input 1

3

Sample Output 1

2

Two pairs can be chosen: (2,1) and (2,3).

Sample Input 2

6

Sample Output 2

9

Sample Input 3

11

Sample Output 3

30

Sample Input 4

50

Sample Output 4

625



Sample input:
3


Sample output:
2

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

k=int(input())
a = k / 2
b = k - a
print(a*b)

Submission status: Wrong Answer

Solution code:
import math
n = int(input())
if n % 2 == 0:
  print((n/2) * (n/2))
else:
  print(math.ceil(n/2) * math.ceil(n/2) + math.ceil(n/2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())

n = k//2

print(n**2 if k%2 else n*(n+1))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())

if k == 0:
  print(0)
else:
  even = k//2
  if k%2==0:
    odd = k-1
  else:
    odd = k
  print(str(even*odd))

Submission status: Wrong Answer

Solution code:
k = int(input())

print(k//2 * (k+1)//2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#109
K = int(input())
KK =K%2
if KK == 1:
    print(int((K/2)*2))
else:
    print(int(K/2*(K/2-1)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3
import sys


def solve(K: int):
    if K % 2 == 0:
        print((K//2)**2)
    else:
        solve((K+1)//2 * (K-1)//2)
    return


# Generated by 1.1.4 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    K = int(next(tokens))  # type: int
    solve(K)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())
ans = 0
for i in range(1,K):
    ans = ans + (i+1)//2
    print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:

K = int(input())

if (K % 2) == 0:
    ans = (K / 2) ** 2

else:
    ans = (K // 2) * ((K // 2) + 1)

print(ans)

Submission status: Wrong Answer

Solution code:
k = int(input())

ans = int(k/2) + int((k+1)/2)

print(ans)

Submission status: Wrong Answer

Solution code:
k = int(input())

ans = k/2 + (k+1)/2

print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())

print((K+1)//2 * K//2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())
e = k / 2
o = k - e
print(e * o)

Submission status: Wrong Answer

Solution code:
k = int(input())
odd = (k + 1) / 2
even = k / 2
print(odd * even)

Submission status: Wrong Answer

Solution code:
K = int(input())

k = K//2
print(k * (k + 1))

Submission status: Wrong Answer

Solution code:
K = int(input())

k = K//2
print(k * (k - 1))

Submission status: Wrong Answer

Solution code:
import sys


def input():
    return sys.stdin.readline()[:-1]

# N = int(input())
# A = [int(x) for x in input().split()]
# a, b, c = map(int, input().split())
# name1 = str(input())
# alph = {"A": 1, "B": 2, "C": 3, "D": 4, "E": 5}


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())
if k % 2 == 0:
    print((k/2)**2)

else:
    print(k//2*(k//2+1))

Submission status: Wrong Answer

Solution code:
import math
a = int(input())
if a % 2 == 0:
    print((a/2)**2)
else :
    print(math.ceil(a/2)*(a//2))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())

print(int(K / 2) * int(K / 2 + 1))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())
a = 0
for i in range(2, n+1, 2): a += n-i
print(a)

Submission status: Wrong Answer

Solution code:
K = int(input())
print(K//2 * K//2)

Submission status: Wrong Answer

Solution code:
a = int(input()) #iを取得し、intに値を入れる
#list = range(2,K)
#listA = list(range(0,a)) #出力：i
kumi = list(range(0,a+1))
l_even = [i for i in kumi if i % 2 == 0 and i != 0]
print(l_even)
# [-4, -2, 0, 2, 4]

l_kisu = [i for i in kumi if i % 2 != 0]
print(l_kisu)

answer = len(l_even) * len(l_kisu)

print(answer)

Submission status: Wrong Answer

Solution code:
import numpy as np
import itertools

a = int(input())

odd_list = np.arange(1, a, 2)
even_list = np.arange(2, a, 2)
count = 0
for odd, even in itertools.product(odd_list, even_list):
    count += 1
    
print(count)

Submission status: Wrong Answer

Solution code:
import numpy as np
import itertools

a = int(input())

odd_list = np.arange(1, a, 2)
even_list = np.arange(2, a, 2)
count = 0
for odd, even in itertools.product(odd_list, even_list):
    print(odd, even)
    count += 1
    
print(count)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N = int(input())
a = (N - N % 2) * (N + N % 2)/4
print(a)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
K = int(input())
print((K // 2) ** 2 - K % 2)

Submission status: Wrong Answer

Solution code:
K = int(input())
eve = int(K / 2)
odd = int(K / 2 + 1)
print(eve*odd)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input());print(a*(a+1)//4)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

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

if n % 2 == 0:
  print(math.factorial(n//2)**2)
else:
  print(math.factorial(n//2)*math.factorial(n//2-1))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input());print(a*a//4-a//4if a%2>0else a*a//4)

Submission status: Wrong Answer

Solution code:
a=int(input());print(a*a//4+a//4if a%2>0else a*a//4)

Submission status: Wrong Answer

Solution code:
a=int(input());print(a*a//4+a//2if a%2>0else a*a//4)

Submission status: Wrong Answer

Solution code:
a=int(input())//2;print(a*a-a if a%2>0else a*a)

Submission status: Wrong Answer

Solution code:
a=int(input());print(a*a-a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

Solution code:
N=int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K=int(input())**2>>2

Submission status: Wrong Answer

Solution code:
K=(int(input())**2//4)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())

(K//2)*((K+1)//2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())
A=N/2
B=N%2
C=int(A*(A+B))
print(C)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(count)

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
K = int(input())
if K % 2 == 0:
  print((K//2)*(K//2))
elif K % 2 == 1:
  print((K+1//2) * ((K-1)//2))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
K = int(input())
if K % 2 == 0:
  print((K//2)*(K//2))
else:
  print((K+1//2) * ((K-1)//2))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
K = int(input())
if K % 2 == 0:
  print((K//2)*(K//2))
else:
  print((K //2) * ((K-1)//2))

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-
K = int(input())
if K % 2 == 0:
  print((K//2)*(K//2))

Submission status: Wrong Answer

Solution code:
k = int(input())

even = k // 2
odd = k // 2 + 1

print(even * odd)

Submission status: Wrong Answer

Solution code:
K = int(input())

even = K // 2
odd = 1 - even

print(even * odd)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

Solution code:
def check (k):
    if k%2==0:
        return (k/2)*(k/2)
    return (k//2)*((k//2)+1)
K=int(input())
print(check(K))

Submission status: Wrong Answer

Solution code:
def check (K):
    if K%2==0:
        return (K/2)*(K/2)
    return (K//2)*((K//2)+1)
K=int(input())
if K >= 2:
    print(check(K))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
from math import*
k= int(input ())
if (k%2==0):
    print ((k/2)**2)
else:
    print(ceil(k/2)*floor(k/2))
#............................................................................................

Submission status: Wrong Answer

Solution code:
K = int(input())

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

Submission status: Wrong Answer

Solution code:
team=input()
x=team[0]
flag=0
d=0
for i in range(len(team)):
   if team[i]==x:
       flag+=1
   else:
        x=team[i]
        flag=0
   if flag==7:
       print("yes")
       d=1
       break
if d==0:
  print("no")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
if K%2 ==0:
    print((K/2) ** 2)
else:
    print(math.ceil(K/2)*math.floor(K/2))

Submission status: Wrong Answer

Solution code:
from math import*
K = int(input())
if K%2 ==0:
    print((K/2) ** 2)
else:
    print(ceil(K/2)*floor(K/2))

Submission status: Wrong Answer

Solution code:
k = int(input())
if k%2 == 0:
    print((k/2)*(k/2))

else:
    print(((k-1)/2)*(((k-1)/2)-k))

Submission status: Wrong Answer

Solution code:
k = int(input())
if k%2 == 0:
    evens = k/2
    odds = k/2
    total = evens*odds
else:
    evens = (k-1)/2
    odds = k - evens
    total = evens*odds
print(total)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k= int(input())
if k% 2 == 0:
    print((k/2)**2)

elif k%2 ==1:

    print((k//2)* ((k//2)+1))

Submission status: Wrong Answer

Solution code:
k= int(input())
if k% 2 == 0:
    print((k/2)**2)

else:
    print((k//2)*((k//2)+1))

Submission status: Wrong Answer

Solution code:
k = int(input())

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

Submission status: Wrong Answer

Solution code:
k = int(input())

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

Submission status: Wrong Answer

Solution code:
K = int(input())


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

Submission status: Wrong Answer

Solution code:
K = int(input())


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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N=int(input())

a=(N//2)*(N//2+1)

print(a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
K = int(input())

odd_number = K // 2 + 1
even_number = K // 2 

print(odd_number*even_number)

Submission status: Wrong Answer

Solution code:
def factoring(K):
    list = [i for i in range(1, K + 1)]
    odd = list[1::2]
    even = list[0::2]

    cnt = 0

    for i in odd:
        for j in even:
            cnt += 1
    return print(cnt)

Submission status: Wrong Answer

Solution code:
def factoring(x):
    list = [i for i in range(1,x+1)]
    odd = list[1::2]
    even = list[0::2]
    return odd,even

cnt = 0
num = 3

for i in factoring(num)[0]:
    for j in factoring(num)[1]:
        cnt += 1

print(cnt)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

k = 50

if k%2:
    print(math.floor(k/2)*math.ceil(k/2))
else:
    print(int((k/2)**2))

Submission status: Wrong Answer

Solution code:
k = int(input())

if k % 2 is 0:
  print(int((k/2)**2))
else:
 print(int(((k-1)/2)**2))

Submission status: Wrong Answer

Solution code:
n = int(input())

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

Submission status: Wrong Answer

Solution code:
if __name__ == '__main__':
    K = int(input())
    odds = int(K+1/2)
    even = int(K/2)
    print(odds*even)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = int(input())

if k%2==0:
    ans = k/2*k/2
elif k%2 != 0:
    ans = (k//2+1)*k/2

ans = int(ans)
print(ans)

Submission status: Wrong Answer

Solution code:
K = int(input())

if K%2 == 0:
  even_num = odd_num = K/2
else:
  even_num = K//2
  odd_num = even_num + 1

print(even_num * odd_num)

Submission status: Wrong Answer

Solution code:
K = int(input())

if K%2 == 0:
  even_num = odd_num = K/2
else:
  even_num = K/2
  odd_num = even_num + 1

print(even_num * odd_num)

Submission status: Wrong Answer

Solution code:
K = int(input())
odds = K // 2 + 1
evens = K // 2

print(odds * evens)

Submission status: Wrong Answer

Solution code:
m = int(input())

print((m//2) * (m//2 +1))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

k = int(input())

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

Submission status: Wrong Answer

Solution code:
def calcPairOddAndEven(num):
    if num % 2 == 0:
        return int((num / 2))**2
    else:
        return int(num / 2)*int(num / 2 + 1)


def main():
    numArray = [3, 6, 11, 50]
    for num in numArray:
        print(num, ":", calcPairOddAndEven(num))


def contest():
    print(calcPairOddAndEven(int(input())))

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
def calcPairOddAndEven(num):
    if num % 2 == 0:
        return int((num / 2))**2
    else:
        return int((num / 2)*num)


def main():
    numArray = [3, 6, 11, 50]
    for num in numArray:
        print(num, ":", calcPairOddAndEven(num))


def contest():
    print(calcPairOddAndEven(int(input())))

if __name__ == '__main__':
    contest()

Submission status: Wrong Answer

Solution code:
k=int(input())
a=int(round((k-1)/2))
print(int(a*(k-a)))

Submission status: Wrong Answer

Solution code:
k=int(input())
a=int(round((k-1)/2))
print(a*(k-a))

Submission status: Wrong Answer

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

K = int(input())

print((K//2 + 1) * (K//2))

Submission status: Wrong Answer

Solution code:
k = int(input())

print((k//2) * (k+1)//2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n=int(input());print(n*(n-1)//4)

Submission status: Wrong Answer

Solution code:
n=int(input());print([n//2**2,n//2*(n//2+1)][n%2])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=int(input())
print(a*(a-1))

Submission status: Wrong Answer

Solution code:
def get(n):
  if(n%2==0):
    return ((n//2)**2)
  else:
    return (((n//2)**2)+(n-1)/2)
n=int(input())
z=get(n)
print (z)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
k = input()
g = k % 2
if g == 1:
    a = k / 2 - 0.5
    b = a + 1
    print(a*b)
else:
    x = k / 2
    print(x*x)

Submission status: Wrong Answer

Solution code:
class Div:
  def __init__(self, a):
    self.a = a
    b, c = divmod(a, 2)
    if c != 0:
      b += 1
    b * c

Submission status: Wrong Answer

Solution code:
import math
K = int(input())
all_number =  K * K
even_number =  math.floor(K/2) * math.floor(K/2)
odd_number = math.ceil(K/2) * math.ceil(K/2)
answer = (all_number - even_number - odd_number)/2
print(answer)

Submission status: Wrong Answer

Solution code:
#ここからA問題
k = int(input())        
#偶数の場合
if (k%2) == 1:
    o = (k-1) * (k+1) / 8
    #eはoと同じ数値
    print(2 * o)
#奇数の場合 
else:
    o = k * (k+2) / 8
    e = (k-2) ** 2 / 8
    print(o+e)

Submission status: Wrong Answer

Solution code:
k = input("kを入力")
k = int(k)
gusu = int(k / 2)
kisu = k - gusu
print("{0}\n".format(gusu * kisu))

Submission status: Wrong Answer

Solution code:
#ここからA問題
k = int(input())        
#偶数の場合
if (k%2) == 0:
    o = (k-1) * (k+1) / 8
    #eはoと同じ数値
    print(2 * o)
#奇数の場合 
else:
    o = k * (k+2) / 8
    e = (k-2) ** 2 / 8
    print(o+e)

Submission status: Wrong Answer

Solution code:
k = input("kを入力")
k = int(k)
gusu = int(k / 2)
kisu = k - gusu
print(gusu * kisu)
print("\n")

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
k = input("kを入力")
k = int(k)
gusu = int(k / 2)
kisu = k - gusu
print(gusu * kisu)

Submission status: Wrong Answer

Solution code:
class Division:
    def __init__(self, a):
        self.a = a
        b,c = divmod(a, 2)
        if c != 0 :
            b += 1
        b * c

Submission status: Wrong Answer

Solution code:
k = int(input())        
if (k%2) == 1:
    oe = ((k+3) * (k-1)) / 8
    print(2 * oe)
else:
    o = (k+4) * (k)/8
    e = (k+2) * (k-2) / 8
    print(o+e)

Submission status: Wrong Answer

Solution code:
k = int(input())        
if (k%2) == 1:
    oe = ((k+1) * (k-3)) / 8
    print(2 * oe)
else:
    o = (k+2) * (k-2)/8
    e = k * (k-4) / 8
    print(o+e)

Submission status: Wrong Answer

Solution code:
k = int(input())        
if (k%2) == 1:
    oe = ((k+1) * (k-3)) / 8
    print(2 * oe)
else:
    o = (k+2) * (k-1)/8
    e = (k*(k-4))/8
    print(o+e)

Submission status: Wrong Answer

Solution code:
asdf = int(input())
if asdf % 2 == 0:
  k1 = asdf / 2
  Ans = k1 * k1
else:
  k2 = (asdf + 1) / 2
  k3 = k2 - 1
  Ans = k2 * k3
print(Ans)

Submission status: Wrong Answer

Solution code:
k = int(input())        
if (k%2) == 1:
    oe = ((k+1) * (k-3)) / 8 
    print(2 * oe)
else:
    o = (k*2) * (k-1)/8
    e = (k*(k-4))/8
    print(o+e)