编程介的小学生 2017-09-04 09:36 采纳率: 20.5%
浏览 797
已采纳

Plane Partition

A plane partition is a two-dimensional array of integers ni,j that are nonincreasing both from left to right and top to bottom. In other words,

ni,j <= ni,j+1
ni,j <= ni+1,j
Implicit in this definition is the requirement that the array be flush on top and to the left and contain no holes.

For example, one plane partition of 22 is illustrated above and the corresponding two-dimensional array is

5 4 2 1 1
3 2 0 0 0
2 2 0 0 0
Now given 3 integers a, b, c, how many plane partitions whose diagrams fit inside an a * b rectangle and whose heights do not exceed c(in other words, with all ni,j <= c)?

Input

Each line contains 3 integers - a, b, c(0 < a, b, c <= 6). The input ends with EOF.

Output

Output the total number in one line for each test case.

Sample Input

1 1 1
2 2 2
3 3 3
Sample Output

2
20
980

  • 写回答

1条回答

  • threenewbee 2017-09-18 02:42
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?