-
Visual C# 韩信点兵算法演示源码
韩信点兵是一道古代数学题,内容是:韩信带兵不足百人,三人一行排列多一个,七人一行排列少两个,五人一行排列正好。相关代码:
int a = 0, b = 0, c = 0;//定义变量
for (int i = 1; i < 100; i++)//遍历
{
Math.DivRem(i, 3, out a);//3行一列时取余
Math.DivRem(i, 5, out b);//5行一列时取余
Math.DivRem(i, 7, out c);//7行一列时取余
if (a == 1 && b == 0 && c == 5)//如果3种方式的余数符合要求
{
textBox1.Text = i.ToString();//显示人数
return;
}
- 2022-01-25 14:48:17下载
- 积分:1
-
Asus X551MA r1.1 boardview
ASUS X551MA rev 1.1_BoardView
- 2019-05-17 15:39:28下载
- 积分:1
-
EA Zigzag
ZigZag Expert Advisor for MT4
- 2020-06-24 04:20:01下载
- 积分:1
-
201512923-赵永斌
说明: 双容水箱液位控制系统是一种采用先进的控制算法完成对液位的控制的系统, 它在食品加工、原油提炼、化工生产等诸多实用行业中都有广泛使用。本次设计中, 要求设计的超调量小,调节时间短和有自平衡能力等优点。首先要掌握生产工艺和控制流程的基本知识,选择合适的仪表。然后进行系统的设计,明确被控对象,并对系统中每个原件进行模型建立;根据系统要求选择合适的控制方法,对控制器进行参数整定。我们将充分利用计算机技术结合自动控制技术实现对水箱水位的精确控制。(Dual-capacity water tank level control system is a system using advanced control algorithm to complete the control of liquid level, which is widely used in food processing, crude oil refining, chemical production and many other practical industries. In this design, the design requires a small amount of overshoot, short adjustment time and self-balancing ability and other advantages. First of all, we should master the basic knowledge of production process and control process, select the appropriate instrument. Then the system is designed, the controlled objects are identified, and each original in the system is modeled, and the appropriate control method is selected according to the requirements of the system to set the parameters of the controller. We will make full use of computer technology combined with automatic control technology to achieve accurate control of water tank level.)
- 2019-03-21 13:16:16下载
- 积分:1
-
TOL_ScriptingTool_ACR122
ACR122U介绍,测试文件,可直接使用, pdf详细说明, 常用脚本等等(Inducetion of ACR122U)
- 2020-06-17 09:40:01下载
- 积分:1
-
分支界限
说明: 用分支界限法完成的算法程序课的作业,可作参考(The assignment of the algorithmic program course completed by the branch-and-bound method can be used as a reference.)
- 2020-06-22 01:40:02下载
- 积分:1
-
Is a control of cars in a garage
this code is un VHDL
Is a control of cars in a garage
this code is un VHDL-Is a control of cars in a garage
this code is un VHDL
- 2022-12-27 03:10:03下载
- 积分:1
-
VB添加和修改环境变量一例
VB创建和修改环境变量一例,演示如何操作Windows的环境变量,比如读取和显示所有变量、改变环境变量值、创建添加新变量等。。
- 2022-02-13 21:04:48下载
- 积分:1
-
WOA算法
说明: WOA灰鲸优化算法,供参考学习。(WOA grey whale optimization algorithm for reference learning.)
- 2019-04-27 15:00:19下载
- 积分:1
-
C3传奇3引擎完整源码+开发日志
重新编写客户端内核,支持硬件加速渲染模式,纹理压缩等最新技术,图像帧动画,粒子系统。内存CPU占用低,执行效率高,游戏更加流畅。支持16位,32位真彩色。
压缩包过大放百度盘(Rewrite the client kernel to support hardware accelerated rendering mode, texture compression and other latest technologies, image frame animation, particle system. The memory CPU occupies low, the execution efficiency is high, and the game is more smooth. Support 16 bits, 32 bits true color.
Compressed Packet Oversize Baidu Disk)
- 2019-01-27 18:08:09下载
- 积分:1