QOJ.ac

QOJ

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

#23957. Блэкджек

İstatistikler

Условие задачи

Даны $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.