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.