-
/*作为一个软件专业的学生,zcy总是对二进制特别感兴趣,有一天他发现了一个有趣的序列:一个长度为N的序列,该序列只含有0或1两个数字,并且该序列不包含连续3个...
/*作为一个软件专业的学生,zcy总是对二进制特别感兴趣,有一天他发现了一个有趣的序列:一个长度为N的序列,该序列只含有0或1两个数字,并且该序列不包含连续3个1,
例如N=3时有7种不同序列,分别是000, 001, 010, 011, 100, 101, 110。111包含3个连续的1所以不是。
现在zcy想知道,对于长为n的一个二进制串,有多少满足条件的01串。
Input
第一行是整数t,表示多少个case,
每行有一个数n,表示串的长度(n
- 2022-08-23 01:27:03下载
- 积分:1
-
MFC 库存管理系统, 插入、添加及删除 ,保存等功能
MFC 库存管理系统, 插入、添加及删除 ,保存等功能-This file contains a summary of what you will find in each of the files that
make up your GoodsManager application.
- 2023-03-07 17:15:05下载
- 积分:1
-
code for finding pixel value and pixel selection by mouse
code for finding pixel value and pixel selection by mouse
- 2023-07-10 00:40:03下载
- 积分:1
-
pspread.ocx for VB activx control
pspread.ocx for VB activx control
- 2023-07-24 03:15:04下载
- 积分:1
-
Programming using MFC dialog implementation in the digital clock display, the pr...
利用MFC编程在对话框中实现数字时钟的显示,对界面编程有一定的参考作用-Programming using MFC dialog implementation in the digital clock display, the programming interface of some reference value
- 2023-04-15 06:50:03下载
- 积分:1
-
《windows95系统程序设计大奥秘》(含源码),由侯捷翻译,附带部分源码,一本学习windows的好书。...
《windows95系统程序设计大奥秘》(含源码),由侯捷翻译,附带部分源码,一本学习windows的好书。-err
- 2022-02-22 12:56:21下载
- 积分:1
-
迷宫 用回溯算法设计的迷宫
迷宫 用回溯算法设计的迷宫---各种回溯方法!回溯!回溯!-Maze solved by different backtrace algorithms!Backtrace!Backtrace!
- 2022-04-09 04:05:47下载
- 积分:1
-
this a icon program in c
this a icon program in c
- 2022-03-16 17:21:36下载
- 积分:1
-
验证码识别软件 VC++ dll 实现
验证码识别软件 VC++ dll 实现 -Code recognition software dll
- 2022-07-25 12:31:14下载
- 积分:1
-
一个简易的VC开发的计算器,可实现混合运算 用到逆波兰表达式...
一个简易的VC开发的计算器,可实现混合运算 用到逆波兰表达式-a simple calculator developed by VC, hybrid computing formula used reverse Poland
- 2022-08-14 11:22:16下载
- 积分:1