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

6128번 - Bessie's Secret Pasture 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 128 MB115946682.500%

문제

Farmer John has cut an almost unlimited number of square pieces of sod (grass sections) of all integer side-lengths from the pasture (sometimes FJ doesn't engage the blade properly and even makes a 0-sided sod squares). He has placed them in nicely organized piles that Bessie spotted one afternoon.

Bessie, always hoping to put delicious grass in her secret pasture, decided to carry precisely four of these sod sections over to her pasture and carve them into 1x1 sections in order to tile its N (1 <= N <= 10,000) unit-square sections.

Bessie is interested in knowing how many different ways she can choose four sod sections to tile her secret pasture. If she had a pasture of size 4, she might haul sod squares in these five different ways: (1,1,1,1), (2,0,0,0), (0,2,0,0), (0,0,2,0), (0,0,0,2). Order counts: (4,3,2,1) is a different way of choosing than (1,2,3,4).

입력

  • Line 1: A single integer: N

출력

  • Line 1: A single integer that is the number of different ways Bessie can choose four sod sections for her pasture

제한

예제 입력 1

4

예제 출력 1

5

힌트

출처

Olympiad > USA Computing Olympiad > 2007-2008 Season > USACO October 2007 Contest > Silver 1번

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

출처

대학교 대회

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

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