QOJ.ac

QOJ

時間限制: 2 s 記憶體限制: 1024 MB

#23957. Blackjack

统计

Aufgabenstellung

Gegeben sind $3$ ganze Zahlen $A, B, C$.

Geben Sie $1$ aus, wenn die Summe der $3$ Werte höchstens $21$ beträgt, und andernfalls $0$.

Bedingungen

  • $1 \le A \le 13$.
  • $1 \le B \le 13$.
  • $1 \le C \le 13$.
  • Alle Eingabewerte sind ganze Zahlen.

Eingabe

Die Eingabe erfolgt im folgenden Format:

A
B
C

Ausgabe

Geben Sie $1$ aus, wenn die Summe der $3$ Werte höchstens $21$ beträgt, und andernfalls $0$.

Geben Sie nichts außer der Antwort aus. (Geben Sie auch keine Sätze zur Eingabeaufforderung usw. aus.)

Ein- und Ausgabebeispiele

Eingabebeispiel 1

5
10
6

Ausgabebeispiel 1

1
  • Die Summe der $3$ Werte ist $5 + 10 + 6 = 21$ und damit höchstens $21$. Daher wird $1$ ausgegeben.

Eingabebeispiel 2

7
8
13

Ausgabebeispiel 2

0
  • Die Summe der $3$ Werte ist $7 + 8 + 13 = 28$ und damit nicht höchstens $21$. Daher wird $0$ ausgegeben.

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.