QOJ.ac

QOJ

시간 제한: 2 s 메모리 제한: 1024 MB

#23957. Blackjack

통계

Tehtävänanto

Annetaan $3$ kokonaislukua $A, B, C$.

Tulosta $1$, jos näiden $3$ arvon summa on enintään $21$, ja muussa tapauksessa $0$.

Rajoitukset

  • $1 \le A \le 13$.
  • $1 \le B \le 13$.
  • $1 \le C \le 13$.
  • Kaikki syötteen arvot ovat kokonaislukuja.

Syöte

Syöte annetaan seuraavassa muodossa:

A
B
C

Tuloste

Tulosta $1$, jos näiden $3$ arvon summa on enintään $21$, ja muussa tapauksessa $0$.

Älä tulosta mitään muuta kuin vastaus. (Älä tulosta syötettä pyytäviä lauseita tms.)

Esimerkkisyötteet ja -tulosteet

Esimerkkisyöte 1

5
10
6

Esimerkkituloste 1

1
  • Näiden $3$ arvon summa on $5 + 10 + 6 = 21$, mikä on enintään $21$. Siispä tulostetaan $1$.

Esimerkkisyöte 2

7
8
13

Esimerkkituloste 2

0
  • Näiden $3$ arvon summa on $7 + 8 + 13 = 28$, mikä ei ole enintään $21$. Siispä tulostetaan $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.