QOJ.ac

QOJ

実行時間制限: 2 s メモリ制限: 1024 MB 満点: 100

#23883. Друге за величиною ціле число

統計

Умова задачі

Дано $3$ цілі числа $A, B, C$. Виведіть $2$-ге за величиною число серед них.

Обмеження

  • $1 \le A \le 100$.
  • $1 \le B \le 100$.
  • $1 \le C \le 100$.

Вхідні дані

Вхідні дані подаються зі стандартного потоку вводу в такому форматі:

A B C

Вихідні дані

Виведіть $2$-ге за величиною число серед $A, B, C$.

Приклади вводу та виводу

Приклад вводу 1

7 5 3

Приклад виводу 1

5
  • Виводиться число $5$, яке є $2$-м за величиною серед $7, 5, 3$.

Приклад вводу 2

1 3 3

Приклад виводу 2

3
  • Серед заданих цілих чисел $2$ можуть бути рівними.
  • Якщо впорядкувати $1, 3, 3$ за незростанням, отримаємо $3, 3, 1$, тому виводиться $2$-ге за величиною число $3$.

Приклад вводу 3

100 100 100

Приклад виводу 3

100
  • Усі задані цілі числа можуть бути рівними.

Приклад вводу 4

29 83 1

Приклад виводу 4

29

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.