题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1041 题目大意:初始数字1。规则1变成01,0变成10。问经过N次完整变换后,有多少连续零对。 关键思想:考虑零对的直接来源只有"10",而"10"的直接来源只有”1“或者”00“。于是可以得到以下几种 ...
分类:
其他好文 时间:
2017-02-19 13:56:49
阅读次数:
154
Problem Description Computer simulations often require random numbers. One way to generate pseudo-random numbers is via a function of the formseed(x+1 ...
分类:
其他好文 时间:
2017-02-18 18:52:36
阅读次数:
165
unit Form_Main; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, Vcl.Controls, Vcl.Form... ...
unit filemap; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; const fileName = 'myTest.tx... ...
分类:
Windows程序 时间:
2017-02-16 13:49:12
阅读次数:
1198
Code A program, often referred to source code or just code , is a set of special instructions to tell the computer what tasks to perform. Usually, the ...
分类:
Web程序 时间:
2017-02-15 14:39:51
阅读次数:
306
Severity Code Description Project File Line Suppression StateError This project references NuGet package(s) that are missing on this computer. Use NuG ...
分类:
Web程序 时间:
2017-02-15 12:46:24
阅读次数:
521
Dear Sir/ Madam, I am writing to apply for this position.I have a master's degree in computer science, and I have been working as a software engineer ...
分类:
其他好文 时间:
2017-02-14 13:23:21
阅读次数:
184
1、验证码生成类:import java.util.Random;
import java.awt.image.BufferedImage;
import java.awt.Graphics;
imp...
分类:
其他好文 时间:
2017-02-14 10:48:40
阅读次数:
506
以前项目自己写的 ,一个模仿苹果AppStore 下载进度条的winfrom用户控件,GDI绘制。效果如图 ...
分类:
移动开发 时间:
2017-02-13 18:28:12
阅读次数:
453
1.1 information is bits + context All computer programs are just a sequence of bits, each with a value of 0 or 1, organized in 8-bit chunks called by ...
分类:
移动开发 时间:
2017-02-13 08:47:13
阅读次数:
325