QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 1024 MB

#23957. Блекджек

Statistics

Умова задачі

Дано $3$ цілі числа $A, B, C$.

Виведіть $1$, якщо сума цих $3$ значень не перевищує $21$, і $0$ в протилежному випадку.

Обмеження

  • $1 \le A \le 13$.
  • $1 \le B \le 13$.
  • $1 \le C \le 13$.
  • Усі вхідні значення є цілими числами.

Вхідні дані

Вхідні дані подаються в такому форматі:

A
B
C

Вихідні дані

Виведіть $1$, якщо сума цих $3$ значень не перевищує $21$, і $0$ в протилежному випадку.

Не виводьте нічого, крім відповіді. (Не виводьте запрошення до вводу тощо.)

Приклади вводу та виводу

Приклад вводу 1

5
10
6

Приклад виводу 1

1
  • Сума $3$ значень дорівнює $5 + 10 + 6 = 21$, що не перевищує $21$. Тому виводимо $1$.

Приклад вводу 2

7
8
13

Приклад виводу 2

0
  • Сума $3$ значень дорівнює $7 + 8 + 13 = 28$, що перевищує $21$. Тому виводимо $0$.

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.