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

6768번 - Don’t pass me the ball! 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
2 초 512 MB14491196108282.975%

문제

A CCC soccer game operates under slightly different soccer rules. A goal is only counted if the 4 players, in order, who touched the ball prior to the goal have jersey numbers that are in strictly increasing numeric order with the highest number being the goal scorer.

Players have jerseys numbered from 1 to 99 (and each jersey number is worn by exactly one player).

Given a jersey number of the goal scorer, indicate how many possible combinations of players can produce a valid goal.

입력

The input will be the positive integer J (1 ≤ J ≤ 99), which is the jersey number of the goal scorer.

출력

The output will be one line containing the number of possible scoring combinations that could have J as the goal scoring jersey number.

제한

예제 입력 1

4

예제 출력 1

1

예제 입력 2

2

예제 출력 2

0

예제 입력 3

90

예제 출력 3

113564

힌트

출처

Olympiad > Canadian Computing Competition & Olympiad > 2012 > CCC 2012 Senior Division 1번

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

출처

대학교 대회

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

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