-
counting-sheep
前一段时间我有睡眠问题。我曾经躺在床上,盯着天花板,几个小时。后来有一天,我的外婆建议我试着数羊后,我已经上床睡觉。与往常一样,当我的奶奶暗示的东西,我决定尝试一下。唯一的问题是,有没有羊的时候,我就去睡觉各地进行计数。
创意,因为我,这是不会阻止我。我坐下来写,使得字符,其中#代表羊的网格,而计算机程序。草(或任何你喜欢的,只是没有羊)。为了使计算更有趣,我也决定要数绵羊,而不是单一的成群的牛羊。两只羊在同一个群,如果他们都有一个共同的一面(上,下,左或右)。另外,如果羊A是在同一羊群如羊B和羊B处于同一羊群如羊℃,然后羊A和C是在同一个群。
现在,我已经有了一个新的问题。虽然这些计数羊居然帮我睡着了,我觉得这是非常无聊的。为了解决这个问题,我决定我需要做的计数为我另一台计算机上的程序。然后,我就可以只启动这两个程序之前,我去睡觉,我会睡个好觉,直到没有任何干扰的早晨。我需要你给我写的这个程序。(A while ago I had trouble sleeping. I used to lie awake, staring at the ceiling, for hours and hours. Then one day my grandmother suggested I tried counting sheep after I d gone to bed. As always when my grandmother suggests things, I decided to try it out. The only problem was, there were no sheep around to be counted when I went to bed.
Creative as I am, that wasn t going to stop me. I sat down and wrote a computer program that made a grid of characters, where# represents a sheep, while . is grass (or whatever you like, just not sheep). To make the counting a little more interesting, I also decided I wanted to count flocks of sheep instead of single sheep. Two sheep are in the same flock if they share a common side (up, down, right or left). Also, if sheep A is in the same flock as sheep B, and sheep B is in the same flock as sheep C, then sheeps A and C are in the same flock.
Now, I ve got a new problem. Though counting these sheep actually helps me fall asleep, I find)
- 2014-11-20 16:33:12下载
- 积分:1
-
基于C#的网络摄像机
这是一个基于C#的网络摄像机,你需要先连上网络摄像机发出的wifi,然后输入对应的Ip号,即可在电脑上无线(内网)查看摄像头所捕捉到的图像.需要安装Aforge这个库,在C#的程序运行平台上安装一下就行,百度上有很多教程,所需要的dll文件都包括在里面了
- 2022-04-15 13:32:08下载
- 积分:1
-
pathneck1.3
网络瓶颈测量的一个工具,能够计算链路带宽,可用带宽,瓶颈定位等(pathneck bottleneck location)
- 2010-03-09 11:06:05下载
- 积分:1
-
HR
说明: 一个小的人事录入系统,可以练习对话框等控件知识(A small personnel entry system, you can practice the dialog box, such as control knowledge)
- 2012-06-17 01:00:04下载
- 积分:1
-
VMpro1.6(亲测可用)
机器视觉开发平台
- 2020-12-09下载
- 积分:1
-
数据库课程设计 出版社信息系统
资源描述出版社管理系统,四张表,包含了 sql 代码,课程设计,用来交作业吧
- 2022-02-28 16:07:56下载
- 积分:1
-
blochs
This is a simple, yet useful Bloch equation simulator that runs in Matlab. It is written as a MEX function so that it can run reasonably quickly, and simulate RF and a 1D gradient waveform. Simulations can be run for a range of spatial offsets and frequency offsets.
- 2014-10-14 13:33:05下载
- 积分:1
-
LCD1602显示姓名首字母和生日
1602显示姓名首字母和生日
1602 Displays initials and birthdays(1602 Displays initials and birthdays)
- 2020-06-19 03:00:01下载
- 积分:1
-
diaoyong
vc++开发的可视化界面,调用ansys,后台,并且可以生成txt,apdl命令流。(The developed visual interface vc++ call ANSYS, background, and can generate txt APDL command flow.)
- 2013-05-15 15:30:34下载
- 积分:1
-
uhard
ABAQUS uhard子程序的相关资料介绍,可以用来学习ABAQUS(Uhard ABAQUS subroutine of the relevant information, can be used to learn ABAQUS)
- 2021-03-29 08:59:10下载
- 积分:1