QOJ.ac

QOJ

حد الوقت: 2 s حد الذاكرة: 1024 MB مجموع النقاط: 100

#23883. Druga co do wielkości liczba całkowita

الإحصائيات

Treść zadania

Dane są $3$ liczby całkowite $A, B, C$. Wypisz $2$-gą co do wielkości liczbę spośród nich.

Ograniczenia

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

Wejście

Wejście jest podawane ze standardowego wejścia w następującym formacie:

A B C

Wyjście

Wypisz $2$-gą co do wielkości liczbę spośród $A, B, C$.

Przykłady wejścia i wyjścia

Wejście przykładowe 1

7 5 3

Wyjście przykładowe 1

5
  • Wypisujemy $5$, czyli $2$-gą co do wielkości liczbę spośród $7, 5, 3$.

Wejście przykładowe 2

1 3 3

Wyjście przykładowe 2

3
  • Spośród podanych liczb całkowitych $2$ mogą być równe.
  • Gdy uporządkujemy $1, 3, 3$ nierosnąco, otrzymamy $3, 3, 1$, a zatem wypisujemy $2$-gą co do wielkości liczbę $3$.

Wejście przykładowe 3

100 100 100

Wyjście przykładowe 3

100
  • Wszystkie podane liczby całkowite mogą być równe.

Wejście przykładowe 4

29 83 1

Wyjście przykładowe 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.