QOJ.ac

QOJ

Süre Sınırı: 2 s Bellek Sınırı: 1024 MB Toplam puan: 100

#23883. Det näst största heltalet

İstatistikler

Uppgift

Du får $3$ heltal $A, B, C$. Skriv ut det $2$:a största talet bland dem.

Begränsningar

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

Indata

Indatan ges från standardinmatningen i följande format:

A B C

Utdata

Skriv ut det $2$:a största talet bland $A, B, C$.

Exempel på indata och utdata

Exempelindata 1

7 5 3

Exempelutdata 1

5
  • Skriv ut $5$, som är det $2$:a största bland $7, 5, 3$.

Exempelindata 2

1 3 3

Exempelutdata 2

3
  • Bland de givna heltalen kan $2$ vara lika.
  • När $1, 3, 3$ ordnas i fallande ordning blir de $3, 3, 1$, så skriv ut det $2$:a största talet $3$.

Exempelindata 3

100 100 100

Exempelutdata 3

100
  • Alla de givna heltalen kan vara lika.

Exempelindata 4

29 83 1

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