QOJ.ac

QOJ

시간 제한: 2 s 메모리 제한: 256 MB 총점: 100

#22777. 합 25

통계

숫자 7개($0 \le \text{each digit} \le 9$; 각각 0부터 9)를 읽고 일부를 골라 합이 25가 되는 방법 수를 세세요. 숫자 0은 0이 아닌 10을 뜻합니다.

다음 입력은:

5 0 1 5 4 3 7

합이 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

입력

한 줄에 한 자리 정수 일곱 개.

출력

합이 25인 부분집합 수를 한 줄에 출력.

예제

입력 1

5 0 1 5 4 3 7

출력 1

5

문제 제공: 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.