我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

Tiling

Description
In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?
Here is a sample tiling of a 2x17 rectangle.

Input
Input is a sequence of lines, each line containing an integer number 0 <= n <= 250.
Output
For each line of input, output one integer number in a separate line giving the number of possible tilings of a 2xn rectangle.
Sample Input
2
8
12
100
200
Sample Output
3
171
2731
845100400152152934331135470251
1071292029505993517027974728227441735014801995855195223534251

http://blog.csdn.net/nvliba/article/details/47903813

近期文章

  • Fliptile
  • PrintSoft问题求解 TRFREAD
  • 通常如何优化jvm的参数?
  • 关于VS中MFC MDI问题
  • spring+mybati配置问题,查询时就报错找不到方法
  • Server 2012中windows time无法自起
  • OSG+VS2013+STL文件的三维显示
  • SVN:Network connection closed unexpectedly
  • 老师留的作业,最后一条,sort函数支持任意自定义数据类型,大神求教
  • VS2013+wdk8.1下虚拟打印驱动安装后无法打印
  • Yii2.0 如何在一个页面上显示另外一个页面的信息,两个页面不再同一个view中
  • 为什么StringBuilder的效率要比String高?
  • java上传视频,总弹出ffmpeg.exe,怎么处理?如图
  • 帮忙用c写个小程序,关于教师公积金缴纳金额计算
  • oracle安装连接,客户端sqlplus失败
  • 在线采纳在线等求解答C语言编程
  • as 报错 Error:Error: Unsupported node 'item'
  • Model object must not be null
  • java ssm框架的问题
  • 代码放网上,用什么工具好?github?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华