登录
首页 » Windows开发 » /*作为一个软件专业的学生,zcy总是对二进制特别感兴趣,有一天他发现了一个有趣的序列:一个长度为N的序列,该序列只含有0或1两个数字,并且该序列不包含连续3个...

/*作为一个软件专业的学生,zcy总是对二进制特别感兴趣,有一天他发现了一个有趣的序列:一个长度为N的序列,该序列只含有0或1两个数字,并且该序列不包含连续3个...

于 2022-08-23 发布 文件大小:858.00 B
0 217
下载积分: 2 下载次数: 1

代码说明:

/*作为一个软件专业的学生,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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • use dial
    利用ras写的ADSL拨号程序,该程序能按用户设定的时间进行拨号,能显示拨号后的IP,当然,该软件写得粗浅,只能作为初学者的参考,有达人修改,请寄我一份,luozehui@hotmail.com,谢谢!-use dial-up ADSL written procedures, the procedures can be set by users of dial-up time. Dial-up can show that the IP, of course, the software written shallow and could only serve as reference for beginners, to be revised, I should be sent to a, luozehui@hotmail.com, thank you!
    2022-03-18 20:06:23下载
    积分:1
  • Windows ce is it come moon application more to get in a lot of occasion as embed...
    windows ce作为嵌入式的操作系统在许多场合得到越来月多的应用,这个是用evc编写的注册表查看工具的原代码-Windows ce is it come moon application more to get in a lot of occasion as embedded operating system, this is the primary code looking over the tool with the registration table that evc writes
    2023-05-30 05:10:03下载
    积分:1
  • 经典语言编程语言
    经典的C语言编程--如何统计字出现的频率(作者是C语言开发者Kernighan和Ritchie)-classic C programming language-- how the statistics of the frequency of the word (The writer is a C-language development were Kernighan and Ritchie)
    2023-03-27 17:10:03下载
    积分:1
  • 打开关闭光驱门
    打开关闭光驱门-drive to open closed doors
    2022-01-26 02:48:18下载
    积分:1
  • 今年百度之星程序设计大赛5月31日初赛的程序。
    今年百度之星程序设计大赛5月31日初赛的程序。-Star program this year, Baidu Design Competition May 31 Preliminary procedure.
    2022-07-04 19:43:43下载
    积分:1
  • Tc2.0 prepared Tetris game!
    Tc2.0编写俄罗斯方块游戏-Tc2.0 prepared Tetris game!
    2022-07-10 00:36:55下载
    积分:1
  • cbulider2010下UDP编程
    在C++ bulider2010 下进行UDP网络通信编程。实际调试嵌入式系统时,经常需要和下位机通信,网络通信无疑方便很多;UDP无疑比TCP更简单方便。
    2022-01-25 21:16:11下载
    积分:1
  • 用汇编语言实现的三个字节与两字节的数据乘法子程序,已调试通过,使用时直接调用即可...
    用汇编语言实现的三个字节与两字节的数据乘法子程序,已调试通过,使用时直接调用即可-using assembly language to achieve the three-byte and 2 gigabytes of data multiplication subroutine, debugging, use can be called directly
    2022-02-02 11:56:13下载
    积分:1
  • Very good tree control, the use of XML, XSL, JS prepared.
    非常好的树形控件,使用XML,XSL,JS编写。 -Very good tree control, the use of XML, XSL, JS prepared.
    2022-03-19 07:41:28下载
    积分:1
  • 一些asp小程序,是我们web老师给的作为参考的例子,处于老师之手,转载请注明!...
    一些asp小程序,是我们web老师给的作为参考的例子,处于老师之手,转载请注明!-some small programs, the teacher is our web as a reference to the example of teachers at the hands of, let us!
    2022-06-18 11:56:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载