QOJ.ac

QOJ

时间限制: 2 s 内存限制: 256 MB 总分: 100

#22777. Suma 25

统计

Wczytaj 7 cyfr ($0 \le \text{each digit} \le 9$; każda od 0 do 9) i policz sposoby wyboru zbioru cyfr o sumie 25. Cyfra 0 oznacza 10, nie 0.

To wejście:

5 0 1 5 4 3 7

daje pięć różnych sum równych 25:

        5 0       3 7
        5   1 5 4 3 7
        5 0 1 5 4
          0 1   4 3 7
          0   5   3 7

Wejście

Jeden wiersz z siedmioma jednocyfrowymi całkowitymi.

Wyjście

Jeden wiersz z liczbą podzbiorów o sumie 25.

Przykład

Wejście 1

5 0 1 5 4 3 7

Wyjście 1

5

Źródło: Don Piele, 1982.

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.