Logo
(追記) (追記ここまで)

27105번 - Equal Summed Subsets 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB88706178.205%

문제

Given the set of integers {1, 2, 3, ..., N}, determine the total number of ways you can divide the set into two equal-summed subsets A and B of that set. The union of A and B is the set of integers {1,2,...n} and A and B have no integers in common. Do not count answers that are just mirror images of each other, e.g.:

{1, 4} and {2, 3}
 vs.
{2, 3} and {1, 4}

counts as a single solution, not two solutions just because the two sets can be ordered the other way.

입력

A single line with an integer 1 ≤ N ≤ 36 that denotes the size of the set.

출력

A single line with an integer that tells how many pairs of equal summed subsets can be created.

제한

예제 입력 1

12

예제 출력 1

62

힌트

출처

Olympiad > USA Computing Olympiad > 1999-2000 Season > USACO Winter 2000 Contest > Green 4번

(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /