QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 1024 MB Total points: 100

#23883. Il secondo intero più grande

Statistics

Testo del problema

Ti vengono dati $3$ interi $A, B, C$. Stampa il $2$° numero più grande tra essi.

Vincoli

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

Dati di input

L'input è fornito dallo standard input nel seguente formato:

A B C

Dati di output

Stampa il $2$° numero più grande tra $A, B, C$.

Esempi di input e output

Input di esempio 1

7 5 3

Output di esempio 1

5
  • Si stampa $5$, che è il $2$° più grande tra $7, 5, 3$.

Input di esempio 2

1 3 3

Output di esempio 2

3
  • Tra gli interi dati, $2$ di essi possono essere uguali.
  • Ordinando $1, 3, 3$ in ordine decrescente si ottiene $3, 3, 1$, quindi si stampa $3$, che è il $2$° più grande.

Input di esempio 3

100 100 100

Output di esempio 3

100
  • Tutti gli interi dati possono essere uguali.

Input di esempio 4

29 83 1

Output di esempio 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.