传统题 1000ms 256MiB

A - Pair

该比赛已结束,您无法在比赛模式下递交该题目。您可以点击“在题库中打开”以普通模式查看和递交本题。

A - Pair

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:

KK

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


3
2

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


6
9

11
30

50
625

2024寒假入门组刷题营(二)

未参加
状态
已结束
规则
ACM/ICPC
题目
8
开始于
2024-1-30 13:30
结束于
2024-1-30 15:30
持续时间
2 小时
主持人
参赛人数
9