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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print(int(input()**2//4))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = map(int, input().split())
if k%2==1:
  print((k//2) * (l//2+1))
else:
  print((k//2) *(k//2))

Submission status: Runtime Error

Solution code:
K = int(input())

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

Submission status: Runtime Error

Solution code:
A = list(map(int, input().split()))

A.sort(reverse=True)

print(A[0]-A[2])

Submission status: Runtime Error

Solution code:
A = list(map(int, input().split()))

B = A.sort(reverse=True)

print(B[0] - B[2])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=int(input())
if n>=2 and n<=100:
    if n%2==0:
        print( (n/2)^2)
    else:
        print( ((n//2)+1)^2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input("enter number")) 
even=0
odd=0
if N%2==0:
    even=N/2
    odd=N/2
elif N=0:
    even=1
    odd=1
else:
    even=N//2
    odd=(N//2) +1
Print(even*odd)
Comment in Mark

Submission status: Runtime Error

Solution code:
N=int(input("enter number")) 
even=0
odd=0
if N%2==0:
    even=N/2
    odd=N/2
else:
    even=N//2
    odd=(N//2) +1
Print(even*odd)

Submission status: Runtime Error

Solution code:
N=int(input("enter number")) 
Counter1=0
Counter2=0
for i in range(N) :
    if i%2==0:
        Counter1+=1 
    if i%2==1:
        Counter2+=1 
Print(Counter1*Counter2)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def test():
    k = int(input())
    if (k%2==0):
        n = (k//2)**2
        print(n)
    else :
        n = ((k//2)**2)+(k//2)
        print(n)
 
 
pair()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = input()

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

Submission status: Runtime Error

Solution code:
k = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

Solution code:
n = int(input())

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = int(input())

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

Submission status: Runtime Error

Solution code:
N = int(input())

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

#define mem(arr, i) fill(arr, arr + sizeof(arr), i)
#define MEM(arr, i) memset(arr, i, sizeof(arr))
#define Push push_back
#define Pair make_pair
#define ALL(x) x.begin(), x.end()
#define X first
#define Y second
#define ACCEL ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL)
typedef unsigned long long ull;
typedef long long lli;
typedef pair<int,int> pii;
typedef pair<lli,lli> pll;
typedef pair<pll,lli> p3l;
typedef vector<int> vcI;
typedef vector<lli> vcL;
typedef vector<pii> vPI;
typedef vector<pll> vPL;
typedef vector<p3l> v3L;
typedef vector<vcL> vvL;
//typedef priority_queue<T> prior_S<T>;
//typedef priority_queue< T, vector<T>, greater<T> > prior_B<T>;
const double PI = 3.141592653589793;
const lli I_MAX = 1LL << 60;
      lli   mod = 1000000007;

/// templates ///

const lli maxN = 2E5;

vcL inv(maxN+5, 1);
vcL fac(maxN+5, 1);

void ADD(lli &x, lli y) {
	x += y;
	if (x >= mod) x -= mod;
	if (x < 0) x += mod;
}

void MUL(lli &x, lli y) {
	x *= y;
	x = (x % mod + mod) % mod;
}

lli mypow(lli b, lli e) {
	lli ans = 1;
	while (e) {
		if (e & 1) MUL(ans, b);
		MUL(b, b);
		e >>= 1;
	}
	return ans;
}

lli modinv(lli n) {
	return mypow(n, mod - 2);
}

void calcInv(lli n) {
	for (int i = 2; i <= n; ++i) {
		inv[i] = (mod - mod / i) * inv[mod % i] % mod;
	}
}

void calcFac(lli n) {
	for (int i = 2; i <= n; ++i) {
		fac[i] = fac[i - 1] * i % mod;
	}
}

lli cm(lli a, lli b) {
	lli ans = 1;
	if (a < b) return 0;

	MUL(ans, inv[fac[a - b]]);
	MUL(ans, inv[fac[b]]);
	MUL(ans, fac[a]);

	return ans;
}

lli Lucas(lli n, lli m) {
	if (m == 0) return 1;
	return cm(n % mod, m % mod) * Lucas(n / mod, m / mod) % mod;
}

lli doLucas(lli n, lli m) {
	calcInv(mod);
	calcFac(mod);
	return Lucas(n, m);
}

/// coding area ///

const lli maxn = 1E5;

void precal() {

	return;
}

void solve() {
	lli n;
	cin >> n;
	cout << (n / 2) * (n - n / 2) << '\n';
}

int main() {
	precal();
	int t = 1;
	#ifdef LOCAL
		t = INT_MAX;
	#else
		ACCEL;
	#endif
//	cin >> t;
	for (int i = 1; i <= t; ++i) {
//		printf("Case #%d: ", i );
		solve();
	}
	return 0;
}

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K=int(input())

if K%2==0:
    even=K/2
    ans=even**2
    else:
        even=K//2
        ans=even**2+1
print(ans)

Submission status: Runtime Error

Solution code:
k = int(input())
count1 = 0
count2 = 0
for i in range(k):
    if i % 2 == 0:
        count1 += 1
    else:
        count2 += 1
print(count1 * count2

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K = int(input())

even = K // 2
odd = K - enve
print(even * odd)

Submission status: Runtime Error

Solution code:
x1, y1, x2, y2 = map(int, input().split())
 
x3 = x2 + (y1 - y2)
y3 = y2 - (x1 - x2)
x4 = x3 + (x1 - x2)
y4 = y3 + (y1 - y2)
 
print(x3, y3, x4, y4)

Submission status: Runtime Error

Solution code:
N = int(input())

even = N // 2
odd = N - even
print(event * odd)

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
if K % 2 == 1:
    print(sum(1 for n in range(1, N + 1) if n % K == 0) ** 3)
else:
    print(sum(1 for n in range(1, N + 1) if n % K == 0) ** 3 \
              + sum(1 for n in range(1, N + 1) if n % K == K // 2) ** 3)

Submission status: Runtime Error

Solution code:
K = int(input())

e = K // 2
if K % 2 == 1:
  o = K // 2 + 1
else:
  o = k // 2
  
print(e * o)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K = input()

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K =int(input())
odd_num = (k-1)//2 +1
even_num = k//2
print((odd_num)*(even_num))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k=int(input())

m=k//2

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

Submission status: Runtime Error

Solution code:
x = int(input())

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

Submission status: Runtime Error

Solution code:
x1,y1,x2,y2=map(int,input().split())
print(x2-y2+y1,y2+x2-x1,y2-y1+x1,x2-x1+y1)

Submission status: Runtime Error

Solution code:
a,b =map(int, input().split())
r = 0
for _ in range(2):
    if(a>b):
        r+=a
        a-=1
    else:
        r+=b
        b-=1
print(r)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())

print(int(k-1)/2**2))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c,d=map(int,input().split())
e=c-a
f=d-b
g=c-f
h=d+e
i=g-e
j=h-f
print(g)
print(h)
print(i)
print(j)

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

Solution code:
K = int(input())

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

print(ak)

Submission status: Runtime Error

Solution code:
K = int(input)

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

print(ak)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x1,y1,x2,y2=map(int,input().split())
x3=x2+y1-y2
y3=y2+x2-x1
x4=x3+y2-y3
y4=y3+x3-x2
print(x3,y3,x4,y4)

Submission status: Runtime Error

Solution code:
x1,y1,x2,y2=map(int,input().split())
x3=x2+y1-y2
y3=y2+x2-x1
x4=x3+y2-y3
y4=y3+x3-x2
print(x3 y3 x4 y4)

Submission status: Runtime Error

Solution code:
N = int(intput())

print((N - N % 2) * (N + N % 2)/4)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x1, y1, x2, y2 = map(int, input().split())

a = x2 - x1
b = y2 - y1

x3 = x2 - b
y3 = y2 + a
x4 = x1 - b
y4 = y1 + a

print("{} {} {} {}".format(x3, y3, x4, y4))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
k = int(input())

c=0

for i in range(1,k+1):
	for j in range(1,K+1)
		if i % 2 ==0:
			if j % 2 == 1:
				c += 1
print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input().split())

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

Submission status: Runtime Error

Solution code:
N = int(input().split())

print("%d"%((N / 2) * ((N + 1) / 2)))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
print((N // 2) * (N - N // 2))

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main(void)
{
    int k; cin >> k;
    cout << k/2 << endl;
    return 0;
}

Submission status: Runtime Error

Solution code:
K = int(input())

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

Submission status: Runtime Error

Solution code:
import numpy as np


def num_even_odd(num):
  num_odd = np.ceil(num/2)
  num_even = num//2
  return num_odd, num_even


def main(num):
  odds, evens = num_even_odd(num)
  print(odds * evens)


if __name__ == "__main__":
  main(input())

Submission status: Runtime Error

Solution code:
x,y,z,w = map(int,input().split())
a = z-x
b = w-y
print(str(z-b)+" "+str(w+a)+" "+str(x-b)+" "+str(y+a))

Submission status: Runtime Error

Solution code:
x1,y1,x2,y2=map(int,input().split())
a=abs(x1-x2)
b=abs(y1-y2)
if(y1<=y2):
  if(x1<=x2):
    print(x2-b,y2+a,x1-b,y1+a)
  else:
    print(x2-b,y2-a,x1-b,y1-a)
else:
  if(x1<=x2):
    print(x2+a,y2-b,x1+a,y1-b)
  else:
    print(x2+b,y2+a,x1+b,y1-a)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x1,x2,y1,y2 = map(int,input().split())
x3 = x2 + (y1 - y2)
y3 = y2 + (x2 - x1)
x4 = y1 + (x2 - x1)
y4 = x1 + (y1 - y2)
print(x3,y3,x4,y4)

Submission status: Runtime Error

Solution code:
x1,y1,x2,y2 = map(int,input().split())
x3 = y1 - y2
y3 = abs(x1 - x2)
x4 = abs(y2 - y3)
y4 = abs(x2 - x3)
print(x3,y3,x4,y4)

Submission status: Runtime Error

Solution code:
x_1,y_1,x_2,y_2=tuple(map(int,input().split()))

be=[x_2-x_1,y_2-y_1]
za3=[x_2+(-1)*be[1],y_2+be[0]]
za4=[x_1+(-1)*be[1],y_1+be[0]]

print(za3[0],za3[1],za4[0],za4[1])

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
print((a//2)*((a+1)//2))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K=int(input())

c=K%2

if(c==0):
    print((K/2)^2)
else:
    print(int(K/2)*(int(K/2)+1))

Submission status: Runtime Error

Solution code:
n = (int)(input())
l_o = [v for v in range(1,n+1,2)]
l_e = [v for v in range(2,n+1,2)]
return (len(l_o)*len(l_e))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
aa

Submission status: Runtime Error

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: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x1,y1,x2,y2 = map(int, input().split())
ylen = y2 - y1
xlen = x2 - x1

x3 = x2 - ylen
y3 = y2 + xlen
x4 = x3 - xlen
y4 = y3 - ylen

print(str(x3) + " " + str(y3) + " " + str(x4) + " " + str(y4))

Submission status: Runtime Error

Solution code:
K = int(input())

if K % 2 == 0:
  answer = (K % 2)^2
else:
  answer = ((K + 1) % 2))^2

print(answer)

Submission status: Runtime Error

Solution code:
N = int(input())
Even = []
Odd = []
for i in range(1,N+1):
    if i % 2 == 0:
        Even.append(i)
    else:
        Odd.append(i)
print(Even * Odd)

Submission status: Runtime Error

Solution code:
x =int(input())

y=x//2

if (y%2==0):
    print (y**2)
elif print ((y**2)+1)

Submission status: Runtime Error

Solution code:
#include<iostream>
#include<algorithm>
#include<string>
#include<map>
#include<stdio.h>
using namespace std;
 
#define REP(i, x, n) for(int i = x; i < n; i++)
#define rep(i,n) REP(i,0,n)
#define INF 1<<25
 
int main()
{
	int n;
	int a;
	int b;
	int c;
	cin >> n;
	a = n / 2;
	b = n % 2;
	if (b == 0)
		c = a * a;
	else
		c = a * a + a;
	cout << c << endl;
	return 0;
}

Submission status: Runtime Error

Solution code:
x1, y1, x2, y2 = map(int, input().split())

y3 = y2 + x2- x1
y4 = x2 - x1 + y1
x3 = y1 - y2 + x2
x4 = y1 - y2 + x1

print(x3, y3, x4, y4)

Submission status: Runtime Error

Solution code:
K=input()
Even=0
Odd=1
For x in range(2,k+1):
      if x%2==0
        Even+=1
      else:
             Odd+=1
print(Odd*Even)

Submission status: Runtime Error

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: Runtime Error

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!=1:
    print("no")

Submission status: Runtime Error

Solution code:
k=int(input())  
odd=1
even=0
for i in range(2,k+1) 
     if i%2==0:
        even+=1
     else:
           odd+=1
print(odd*even)

Submission status: Runtime Error

Solution code:
k=input()  
odd=1
even=0
for i in range(2,k+1): 
     if i%2==0:
        even+=1
     else:
           odd+=1
print(odd*even)

Submission status: Runtime Error

Solution code:
k= input()  
odd=1
even=0
for i in range(2,k+1):
     if i%2==0:
        even+=1
     else:
           odd+=1
print(odd*even)

Submission status: Runtime Error

Solution code:
k= input ()  
odd=1
even=0
for i in range(2,k+1) 
     if i%2==0:
        even+=1
     else:
           odd+=1
print(odd*even)

Submission status: Runtime Error

Solution code:
k=input()  
odd=1
even=0
for i in range(2,k+1) 
     if i%2==0:
        even+=1
     else:
           odd+=1
print(odd*even)

Submission status: Runtime Error

Solution code:
k=input()
odd=0
even=0
for i in range(1,k+1) 
     if i%2==0:
        even+=1
     else:
            odd+=1
print(odd*even)

Submission status: Runtime Error

Solution code:
k=input()
pair=0
odd=0
even=0
for i in range(1,k+1) 
     if i%2==0:
        even+=1
     else:
            odd+=1
print(odd*even)

Submission status: Runtime Error

Solution code:
k=input()
pair=0
for i in range(1,k+1):
     for j in range (2,k+1)
          if i%2==0 and j%2!=0:
              pair+=1
          if i%2!=0 and j%2==0 :
               pair+=1
          
print(pair)

Submission status: Runtime Error

Solution code:
k=input()
pair=0
for i in range(1,k+1):
     for j in range (2,k+1)
          if i%2==0 and j%2!=0:
              pair+=1
         ELIF i%2!=0 and j%2==0 :
               pair+=1
         
print(pair)

Submission status: Runtime Error

Solution code:
k=input()
pair=0
for i in range(1,k+1):
     for j in range (2,k+1)
          if i%2==0 and j%2!=0:
              pair+=1
         ELIF i%2!=0 and j%2==0 :
               pair+=1
          else:
                pass
print(pair)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
k = map(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: Runtime Error

Solution code:
k = int(input())

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

Submission status: Runtime Error

Solution code:
k = int(input())


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

Submission status: Runtime Error

Solution code:
K = int(input())


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

Submission status: Runtime Error

Solution code:
K = int(input())


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

Submission status: Runtime Error

Solution code:
K = int(input())

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

Submission status: Runtime Error

Solution code:
K = int(input())

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

Submission status: Runtime Error

Solution code:
K = int(input())


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

Submission status: Runtime Error

Solution code:
K = int(input())


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

Submission status: Runtime Error

Solution code:
K = int(input())


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

Submission status: Runtime Error

Solution code:
K = int(input())


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

Submission status: Runtime Error

Solution code:
K = int(input())

ans=0

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

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n,k = map(int,input().split())

if k%2==1:
    ans = (n//k)**3
else:
    even = n//k
    odd  = (2*n)//k - even
    ans = even**3 + odd**3
print(ans)

Submission status: Runtime Error

Solution code:
#include<iostream>
using namespace std;

int main(){
  int k;
  cin >> k;
  cout << k/2 * (k - k/2) << endl;
  return 0;
}

Submission status: Runtime Error

Solution code:
K = map(int, input())

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

print(odd_number*even_number)

Submission status: Runtime Error

Solution code:
K = int(input())

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

print(odd_number*even_number)

Submission status: Runtime Error

Solution code:
K = input()

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

print(odd_number*even_number)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
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

print(cnt)

Submission status: Runtime Error

Solution code:
K = input()

kisu = K/2
gusu = (K+1)/2

print(kisu * gusu)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x1, y1, x2, y2 = map(int, input().split())
diff_x, diff_y = x2 - x1, y2 - y1
print('%s %s %s %s'%(x2 - diff_y, y2 + diff_x, x1 - diff_y, y1 + diff_x))

Submission status: Runtime Error

Solution code:
x1, y1, x2, y2 = map(int, input().split())
diff_x, diff_y = x2 - x1, y2 - y1
print(x2 - diff_y, y2 + diff_x, x1 - diff_y, y1 + diff_x)

Submission status: Runtime Error

Solution code:
x1, y1, x2, y2 = map(int, input().split())
diff_x, diff_y = x2 - x1, y2 - y1

x3 = x2	- diff_y
y3 = y2 + diff_x

x4 = x1	- diff_y
y4 = y1 + diff_x


print(x3, y3, x4, y4)

Submission status: Runtime Error

Solution code:
import math

k = int(input())

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

Submission status: Runtime Error

Solution code:
# cook your dish here
import numpy as np
if __name__ == '__main__':
    xy = [int(i) for i in input().split()]
    a1 = np.array([xy[0], xy[1]])
    a2 = np.array([xy[2], xy[3]])
    b = a2 - a1
    r = np.pi / 2
    rot = np.matrix((
        (np.cos(r), np.sin(r)),
        (-np.sin(r), np.cos(r))
    ))
    c = np.dot(b, rot)
    a3 = a2+c
    a4 = a1+c
    print('{} {} {} {}'.format(np.round(a3[0,0]), np.round(a3[0,1]), np.round(a4[0,0]), np.round(a4[0,1])))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
K = int(input())

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

print(even_num * odd_num)

Submission status: Runtime Error

Solution code:
K = int(input.strip())
num1 = K // 2
num2 = K - num1
print(num1 * num2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;

int main() {
    int K; cin >> K;
    cout << (K / 2) * ((K + 1) / 2) << endl;
    return 0;
}

Submission status: Runtime Error

Solution code:
l = map(int, input().split())
a=list(l)
x1=a[0]
y1=a[1]
x2=a[2]
y2=a[3]
x=x2-x1
y=y2-y1
x3=x2-y
y3=y2+x
x4=x1-y
y4=y1+x
c=[x3, y3, x4, y4]
print(c[0], c[1], c[2], c[3])

Submission status: Runtime Error

Solution code:
x_1,y_1,x_2,y_2 = list(map(int,input().split()))

A = x_2 - x_1 
B = y_2 - y_1

print(x_2-B,y_2+A,x_1-B,y_1+A)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N,K = map(int, input().split())

ans = int(N/K) ** 3
if K%2 == 0:
    ans += int(N/int(K/2) - int(N/K)) ** 3
    
print(ans)