QOJ.ac

QOJ

Limite de temps : 2 s Limite de mémoire : 1024 MB

#23957. Blackjack

Statistiques

Lýsing

Gefnar eru $3$ heiltölur $A, B, C$.

Prentið $1$ ef summa þessara $3$ gilda er í mesta lagi $21$, en $0$ annars.

Skilyrði

  • $1 \le A \le 13$.
  • $1 \le B \le 13$.
  • $1 \le C \le 13$.
  • Öll inntaksgildi eru heiltölur.

Inntak

Inntakið er gefið á eftirfarandi sniði:

A
B
C

Úttak

Prentið $1$ ef summa þessara $3$ gilda er í mesta lagi $21$, en $0$ annars.

Prentið ekkert annað en svarið. (Prentið ekki setningar sem biðja um inntak o.s.frv.)

Dæmi um inntak og úttak

Inntaksdæmi 1

5
10
6

Úttaksdæmi 1

1
  • Summa þessara $3$ gilda er $5 + 10 + 6 = 21$, sem er í mesta lagi $21$. Því er prentað $1$.

Inntaksdæmi 2

7
8
13

Úttaksdæmi 2

0
  • Summa þessara $3$ gilda er $7 + 8 + 13 = 28$, sem er ekki í mesta lagi $21$. Því er prentað $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.