QOJ.ac

QOJ

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

#23883. Die zweitgrößte ganze Zahl

統計

Aufgabenstellung

Gegeben sind $3$ ganze Zahlen $A, B, C$. Geben Sie die $2$. größte Zahl unter ihnen aus.

Bedingungen

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

Eingabe

Die Eingabe erfolgt über die Standardeingabe im folgenden Format:

A B C

Ausgabe

Geben Sie die $2$. größte Zahl unter $A, B, C$ aus.

Ein- und Ausgabebeispiele

Eingabebeispiel 1

7 5 3

Ausgabebeispiel 1

5
  • Ausgegeben wird $5$, die $2$. größte Zahl unter $7, 5, 3$.

Eingabebeispiel 2

1 3 3

Ausgabebeispiel 2

3
  • Unter den gegebenen ganzen Zahlen können $2$ gleich sein.
  • Wenn man $1, 3, 3$ absteigend sortiert, erhält man $3, 3, 1$; daher wird die $2$. größte Zahl $3$ ausgegeben.

Eingabebeispiel 3

100 100 100

Ausgabebeispiel 3

100
  • Es können auch alle gegebenen ganzen Zahlen gleich sein.

Eingabebeispiel 4

29 83 1

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