C语言 关于微生物增殖(假设有两种微生物 X 和 Y X出生后每隔3分钟分裂一次…引发的思考

程序之美

题目描述

假设有两种微生物 X 和 Y
X出生后每隔3分钟分裂一次(数目加倍),Y出生后每隔2分钟分裂一次(数目加倍)。
一个新出生的X,半分钟之后吃掉1个Y,并且,从此开始,每隔1分钟吃1个Y。
现在已知有新出生的 X=10, Y=89,求60分钟后Y的数目。
如果X=10,Y=90呢?
本题的要求就是写出这两种初始条件下,60分钟后Y的数目。

输入
没有输入。

输出
两个整数,每个占1行。

有很多朋友拿到这个题目,无从下手,不知道怎么分析,怎么解决问题。这里我就冒充一次长者,带着大家捋顺一下思路。
在解题之前,我们先说下我们的方法,我们的方法叫三点一测法,何为三点一测呢。又是哪三点,哪一测呢。我们详细来讲。
三点一测法精髓:
第一点,提取题目核心点:
第二点,归一化题目分歧点:
第三点,全方位整理解题逻辑点,
一测:及时进行测试,调试,修复逻辑漏洞。

好了,我们就用这个题目开刀,给大伙讲解下具体的实践用法。

提取题目核心点

我们提取题目核心点,本题的核心点,也就是本题能够提供给我们的信息,包括显性的也包括隐形的。从这道题我们可以轻松的看到相关核心点。
比如:
1、生物X每三分钟分裂一次
2、生物Y每两分钟分裂一次
3、新出生X半分钟要吃掉一个Y,之后每一分钟吃掉一个Y。

本题基本上能够提取的信息也就这些。

序号 核心点
1 生物X每三分钟分裂一次
2 生物Y每两分钟分裂一次
3 新出生X半分钟要吃掉一个Y,之后每一分钟吃掉一个Y
#mermaid-svg-6OAEWsGJcI5GJVWe .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .label text{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .node rect,#mermaid-svg-6OAEWsGJcI5GJVWe .node circle,#mermaid-svg-6OAEWsGJcI5GJVWe .node ellipse,#mermaid-svg-6OAEWsGJcI5GJVWe .node polygon,#mermaid-svg-6OAEWsGJcI5GJVWe .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-6OAEWsGJcI5GJVWe .node .label{text-align:center;fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .node.clickable{cursor:pointer}#mermaid-svg-6OAEWsGJcI5GJVWe .arrowheadPath{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-6OAEWsGJcI5GJVWe .flowchart-link{stroke:#333;fill:none}#mermaid-svg-6OAEWsGJcI5GJVWe .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-6OAEWsGJcI5GJVWe .edgeLabel rect{opacity:0.9}#mermaid-svg-6OAEWsGJcI5GJVWe .edgeLabel span{color:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-6OAEWsGJcI5GJVWe .cluster text{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-6OAEWsGJcI5GJVWe .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-6OAEWsGJcI5GJVWe text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-6OAEWsGJcI5GJVWe .actor-line{stroke:grey}#mermaid-svg-6OAEWsGJcI5GJVWe .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-6OAEWsGJcI5GJVWe #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .sequenceNumber{fill:#fff}#mermaid-svg-6OAEWsGJcI5GJVWe #sequencenumber{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe #crosshead path{fill:#333;stroke:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .messageText{fill:#333;stroke:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-6OAEWsGJcI5GJVWe .labelText,#mermaid-svg-6OAEWsGJcI5GJVWe .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-6OAEWsGJcI5GJVWe .loopText,#mermaid-svg-6OAEWsGJcI5GJVWe .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-6OAEWsGJcI5GJVWe .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-6OAEWsGJcI5GJVWe .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-6OAEWsGJcI5GJVWe .noteText,#mermaid-svg-6OAEWsGJcI5GJVWe .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-6OAEWsGJcI5GJVWe .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-6OAEWsGJcI5GJVWe .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-6OAEWsGJcI5GJVWe .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-6OAEWsGJcI5GJVWe .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe .section{stroke:none;opacity:0.2}#mermaid-svg-6OAEWsGJcI5GJVWe .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-6OAEWsGJcI5GJVWe .section2{fill:#fff400}#mermaid-svg-6OAEWsGJcI5GJVWe .section1,#mermaid-svg-6OAEWsGJcI5GJVWe .section3{fill:#fff;opacity:0.2}#mermaid-svg-6OAEWsGJcI5GJVWe .sectionTitle0{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .sectionTitle1{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .sectionTitle2{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .sectionTitle3{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-6OAEWsGJcI5GJVWe .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe .grid path{stroke-width:0}#mermaid-svg-6OAEWsGJcI5GJVWe .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-6OAEWsGJcI5GJVWe .task{stroke-width:2}#mermaid-svg-6OAEWsGJcI5GJVWe .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe .taskText:not([font-size]){font-size:11px}#mermaid-svg-6OAEWsGJcI5GJVWe .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-6OAEWsGJcI5GJVWe .task.clickable{cursor:pointer}#mermaid-svg-6OAEWsGJcI5GJVWe .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-6OAEWsGJcI5GJVWe .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-6OAEWsGJcI5GJVWe .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-6OAEWsGJcI5GJVWe .taskText0,#mermaid-svg-6OAEWsGJcI5GJVWe .taskText1,#mermaid-svg-6OAEWsGJcI5GJVWe .taskText2,#mermaid-svg-6OAEWsGJcI5GJVWe .taskText3{fill:#fff}#mermaid-svg-6OAEWsGJcI5GJVWe .task0,#mermaid-svg-6OAEWsGJcI5GJVWe .task1,#mermaid-svg-6OAEWsGJcI5GJVWe .task2,#mermaid-svg-6OAEWsGJcI5GJVWe .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-6OAEWsGJcI5GJVWe .taskTextOutside0,#mermaid-svg-6OAEWsGJcI5GJVWe .taskTextOutside2{fill:#000}#mermaid-svg-6OAEWsGJcI5GJVWe .taskTextOutside1,#mermaid-svg-6OAEWsGJcI5GJVWe .taskTextOutside3{fill:#000}#mermaid-svg-6OAEWsGJcI5GJVWe .active0,#mermaid-svg-6OAEWsGJcI5GJVWe .active1,#mermaid-svg-6OAEWsGJcI5GJVWe .active2,#mermaid-svg-6OAEWsGJcI5GJVWe .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-6OAEWsGJcI5GJVWe .activeText0,#mermaid-svg-6OAEWsGJcI5GJVWe .activeText1,#mermaid-svg-6OAEWsGJcI5GJVWe .activeText2,#mermaid-svg-6OAEWsGJcI5GJVWe .activeText3{fill:#000 !important}#mermaid-svg-6OAEWsGJcI5GJVWe .done0,#mermaid-svg-6OAEWsGJcI5GJVWe .done1,#mermaid-svg-6OAEWsGJcI5GJVWe .done2,#mermaid-svg-6OAEWsGJcI5GJVWe .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-6OAEWsGJcI5GJVWe .doneText0,#mermaid-svg-6OAEWsGJcI5GJVWe .doneText1,#mermaid-svg-6OAEWsGJcI5GJVWe .doneText2,#mermaid-svg-6OAEWsGJcI5GJVWe .doneText3{fill:#000 !important}#mermaid-svg-6OAEWsGJcI5GJVWe .crit0,#mermaid-svg-6OAEWsGJcI5GJVWe .crit1,#mermaid-svg-6OAEWsGJcI5GJVWe .crit2,#mermaid-svg-6OAEWsGJcI5GJVWe .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-6OAEWsGJcI5GJVWe .activeCrit0,#mermaid-svg-6OAEWsGJcI5GJVWe .activeCrit1,#mermaid-svg-6OAEWsGJcI5GJVWe .activeCrit2,#mermaid-svg-6OAEWsGJcI5GJVWe .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-6OAEWsGJcI5GJVWe .doneCrit0,#mermaid-svg-6OAEWsGJcI5GJVWe .doneCrit1,#mermaid-svg-6OAEWsGJcI5GJVWe .doneCrit2,#mermaid-svg-6OAEWsGJcI5GJVWe .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-6OAEWsGJcI5GJVWe .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-6OAEWsGJcI5GJVWe .milestoneText{font-style:italic}#mermaid-svg-6OAEWsGJcI5GJVWe .doneCritText0,#mermaid-svg-6OAEWsGJcI5GJVWe .doneCritText1,#mermaid-svg-6OAEWsGJcI5GJVWe .doneCritText2,#mermaid-svg-6OAEWsGJcI5GJVWe .doneCritText3{fill:#000 !important}#mermaid-svg-6OAEWsGJcI5GJVWe .activeCritText0,#mermaid-svg-6OAEWsGJcI5GJVWe .activeCritText1,#mermaid-svg-6OAEWsGJcI5GJVWe .activeCritText2,#mermaid-svg-6OAEWsGJcI5GJVWe .activeCritText3{fill:#000 !important}#mermaid-svg-6OAEWsGJcI5GJVWe .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-6OAEWsGJcI5GJVWe g.classGroup text .title{font-weight:bolder}#mermaid-svg-6OAEWsGJcI5GJVWe g.clickable{cursor:pointer}#mermaid-svg-6OAEWsGJcI5GJVWe g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-6OAEWsGJcI5GJVWe g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-6OAEWsGJcI5GJVWe .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-6OAEWsGJcI5GJVWe .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-6OAEWsGJcI5GJVWe .dashed-line{stroke-dasharray:3}#mermaid-svg-6OAEWsGJcI5GJVWe #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe .commit-id,#mermaid-svg-6OAEWsGJcI5GJVWe .commit-msg,#mermaid-svg-6OAEWsGJcI5GJVWe .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-6OAEWsGJcI5GJVWe g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-6OAEWsGJcI5GJVWe g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-6OAEWsGJcI5GJVWe g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-6OAEWsGJcI5GJVWe .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-6OAEWsGJcI5GJVWe .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-6OAEWsGJcI5GJVWe .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-6OAEWsGJcI5GJVWe .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-6OAEWsGJcI5GJVWe .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-6OAEWsGJcI5GJVWe .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-6OAEWsGJcI5GJVWe .edgeLabel text{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-6OAEWsGJcI5GJVWe .node circle.state-start{fill:black;stroke:black}#mermaid-svg-6OAEWsGJcI5GJVWe .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-6OAEWsGJcI5GJVWe #statediagram-barbEnd{fill:#9370db}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-state .divider{stroke:#9370db}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-6OAEWsGJcI5GJVWe .note-edge{stroke-dasharray:5}#mermaid-svg-6OAEWsGJcI5GJVWe .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-6OAEWsGJcI5GJVWe .error-icon{fill:#522}#mermaid-svg-6OAEWsGJcI5GJVWe .error-text{fill:#522;stroke:#522}#mermaid-svg-6OAEWsGJcI5GJVWe .edge-thickness-normal{stroke-width:2px}#mermaid-svg-6OAEWsGJcI5GJVWe .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-6OAEWsGJcI5GJVWe .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-6OAEWsGJcI5GJVWe .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-6OAEWsGJcI5GJVWe .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-6OAEWsGJcI5GJVWe .marker{fill:#333}#mermaid-svg-6OAEWsGJcI5GJVWe .marker.cross{stroke:#333}:root { --mermaid-font-family: "trebuchet ms", verdana, arial;} #mermaid-svg-6OAEWsGJcI5GJVWe {color: rgba(0, 0, 0, 0.75);font: ;}

三分钟
三分钟
两分钟
两分钟
半分钟
一分钟
生物X
生物X
生物X
生物Y
生物Y
生物Y
生物X
生物Y
生物Y

看到这三个信息,我相信很多小伙伴蒙了,丈二的和尚,摸不着脑门,说没联系吧,有联系,唯一的联系就X吃Y,说有联系吧,一会二半分钟吃,一会一分钟吃的。

#mermaid-svg-wRlpvWynFWiLj8EU .label{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);fill:#333;color:#333}#mermaid-svg-wRlpvWynFWiLj8EU .label text{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU .node rect,#mermaid-svg-wRlpvWynFWiLj8EU .node circle,#mermaid-svg-wRlpvWynFWiLj8EU .node ellipse,#mermaid-svg-wRlpvWynFWiLj8EU .node polygon,#mermaid-svg-wRlpvWynFWiLj8EU .node path{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-wRlpvWynFWiLj8EU .node .label{text-align:center;fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU .node.clickable{cursor:pointer}#mermaid-svg-wRlpvWynFWiLj8EU .arrowheadPath{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU .edgePath .path{stroke:#333;stroke-width:1.5px}#mermaid-svg-wRlpvWynFWiLj8EU .flowchart-link{stroke:#333;fill:none}#mermaid-svg-wRlpvWynFWiLj8EU .edgeLabel{background-color:#e8e8e8;text-align:center}#mermaid-svg-wRlpvWynFWiLj8EU .edgeLabel rect{opacity:0.9}#mermaid-svg-wRlpvWynFWiLj8EU .edgeLabel span{color:#333}#mermaid-svg-wRlpvWynFWiLj8EU .cluster rect{fill:#ffffde;stroke:#aa3;stroke-width:1px}#mermaid-svg-wRlpvWynFWiLj8EU .cluster text{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:12px;background:#ffffde;border:1px solid #aa3;border-radius:2px;pointer-events:none;z-index:100}#mermaid-svg-wRlpvWynFWiLj8EU .actor{stroke:#ccf;fill:#ECECFF}#mermaid-svg-wRlpvWynFWiLj8EU text.actor>tspan{fill:#000;stroke:none}#mermaid-svg-wRlpvWynFWiLj8EU .actor-line{stroke:grey}#mermaid-svg-wRlpvWynFWiLj8EU .messageLine0{stroke-width:1.5;stroke-dasharray:none;stroke:#333}#mermaid-svg-wRlpvWynFWiLj8EU .messageLine1{stroke-width:1.5;stroke-dasharray:2, 2;stroke:#333}#mermaid-svg-wRlpvWynFWiLj8EU #arrowhead path{fill:#333;stroke:#333}#mermaid-svg-wRlpvWynFWiLj8EU .sequenceNumber{fill:#fff}#mermaid-svg-wRlpvWynFWiLj8EU #sequencenumber{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU #crosshead path{fill:#333;stroke:#333}#mermaid-svg-wRlpvWynFWiLj8EU .messageText{fill:#333;stroke:#333}#mermaid-svg-wRlpvWynFWiLj8EU .labelBox{stroke:#ccf;fill:#ECECFF}#mermaid-svg-wRlpvWynFWiLj8EU .labelText,#mermaid-svg-wRlpvWynFWiLj8EU .labelText>tspan{fill:#000;stroke:none}#mermaid-svg-wRlpvWynFWiLj8EU .loopText,#mermaid-svg-wRlpvWynFWiLj8EU .loopText>tspan{fill:#000;stroke:none}#mermaid-svg-wRlpvWynFWiLj8EU .loopLine{stroke-width:2px;stroke-dasharray:2, 2;stroke:#ccf;fill:#ccf}#mermaid-svg-wRlpvWynFWiLj8EU .note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-wRlpvWynFWiLj8EU .noteText,#mermaid-svg-wRlpvWynFWiLj8EU .noteText>tspan{fill:#000;stroke:none}#mermaid-svg-wRlpvWynFWiLj8EU .activation0{fill:#f4f4f4;stroke:#666}#mermaid-svg-wRlpvWynFWiLj8EU .activation1{fill:#f4f4f4;stroke:#666}#mermaid-svg-wRlpvWynFWiLj8EU .activation2{fill:#f4f4f4;stroke:#666}#mermaid-svg-wRlpvWynFWiLj8EU .mermaid-main-font{font-family:"trebuchet ms", verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU .section{stroke:none;opacity:0.2}#mermaid-svg-wRlpvWynFWiLj8EU .section0{fill:rgba(102,102,255,0.49)}#mermaid-svg-wRlpvWynFWiLj8EU .section2{fill:#fff400}#mermaid-svg-wRlpvWynFWiLj8EU .section1,#mermaid-svg-wRlpvWynFWiLj8EU .section3{fill:#fff;opacity:0.2}#mermaid-svg-wRlpvWynFWiLj8EU .sectionTitle0{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU .sectionTitle1{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU .sectionTitle2{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU .sectionTitle3{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU .sectionTitle{text-anchor:start;font-size:11px;text-height:14px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU .grid .tick{stroke:#d3d3d3;opacity:0.8;shape-rendering:crispEdges}#mermaid-svg-wRlpvWynFWiLj8EU .grid .tick text{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU .grid path{stroke-width:0}#mermaid-svg-wRlpvWynFWiLj8EU .today{fill:none;stroke:red;stroke-width:2px}#mermaid-svg-wRlpvWynFWiLj8EU .task{stroke-width:2}#mermaid-svg-wRlpvWynFWiLj8EU .taskText{text-anchor:middle;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU .taskText:not([font-size]){font-size:11px}#mermaid-svg-wRlpvWynFWiLj8EU .taskTextOutsideRight{fill:#000;text-anchor:start;font-size:11px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU .taskTextOutsideLeft{fill:#000;text-anchor:end;font-size:11px}#mermaid-svg-wRlpvWynFWiLj8EU .task.clickable{cursor:pointer}#mermaid-svg-wRlpvWynFWiLj8EU .taskText.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-wRlpvWynFWiLj8EU .taskTextOutsideLeft.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-wRlpvWynFWiLj8EU .taskTextOutsideRight.clickable{cursor:pointer;fill:#003163 !important;font-weight:bold}#mermaid-svg-wRlpvWynFWiLj8EU .taskText0,#mermaid-svg-wRlpvWynFWiLj8EU .taskText1,#mermaid-svg-wRlpvWynFWiLj8EU .taskText2,#mermaid-svg-wRlpvWynFWiLj8EU .taskText3{fill:#fff}#mermaid-svg-wRlpvWynFWiLj8EU .task0,#mermaid-svg-wRlpvWynFWiLj8EU .task1,#mermaid-svg-wRlpvWynFWiLj8EU .task2,#mermaid-svg-wRlpvWynFWiLj8EU .task3{fill:#8a90dd;stroke:#534fbc}#mermaid-svg-wRlpvWynFWiLj8EU .taskTextOutside0,#mermaid-svg-wRlpvWynFWiLj8EU .taskTextOutside2{fill:#000}#mermaid-svg-wRlpvWynFWiLj8EU .taskTextOutside1,#mermaid-svg-wRlpvWynFWiLj8EU .taskTextOutside3{fill:#000}#mermaid-svg-wRlpvWynFWiLj8EU .active0,#mermaid-svg-wRlpvWynFWiLj8EU .active1,#mermaid-svg-wRlpvWynFWiLj8EU .active2,#mermaid-svg-wRlpvWynFWiLj8EU .active3{fill:#bfc7ff;stroke:#534fbc}#mermaid-svg-wRlpvWynFWiLj8EU .activeText0,#mermaid-svg-wRlpvWynFWiLj8EU .activeText1,#mermaid-svg-wRlpvWynFWiLj8EU .activeText2,#mermaid-svg-wRlpvWynFWiLj8EU .activeText3{fill:#000 !important}#mermaid-svg-wRlpvWynFWiLj8EU .done0,#mermaid-svg-wRlpvWynFWiLj8EU .done1,#mermaid-svg-wRlpvWynFWiLj8EU .done2,#mermaid-svg-wRlpvWynFWiLj8EU .done3{stroke:grey;fill:#d3d3d3;stroke-width:2}#mermaid-svg-wRlpvWynFWiLj8EU .doneText0,#mermaid-svg-wRlpvWynFWiLj8EU .doneText1,#mermaid-svg-wRlpvWynFWiLj8EU .doneText2,#mermaid-svg-wRlpvWynFWiLj8EU .doneText3{fill:#000 !important}#mermaid-svg-wRlpvWynFWiLj8EU .crit0,#mermaid-svg-wRlpvWynFWiLj8EU .crit1,#mermaid-svg-wRlpvWynFWiLj8EU .crit2,#mermaid-svg-wRlpvWynFWiLj8EU .crit3{stroke:#f88;fill:red;stroke-width:2}#mermaid-svg-wRlpvWynFWiLj8EU .activeCrit0,#mermaid-svg-wRlpvWynFWiLj8EU .activeCrit1,#mermaid-svg-wRlpvWynFWiLj8EU .activeCrit2,#mermaid-svg-wRlpvWynFWiLj8EU .activeCrit3{stroke:#f88;fill:#bfc7ff;stroke-width:2}#mermaid-svg-wRlpvWynFWiLj8EU .doneCrit0,#mermaid-svg-wRlpvWynFWiLj8EU .doneCrit1,#mermaid-svg-wRlpvWynFWiLj8EU .doneCrit2,#mermaid-svg-wRlpvWynFWiLj8EU .doneCrit3{stroke:#f88;fill:#d3d3d3;stroke-width:2;cursor:pointer;shape-rendering:crispEdges}#mermaid-svg-wRlpvWynFWiLj8EU .milestone{transform:rotate(45deg) scale(0.8, 0.8)}#mermaid-svg-wRlpvWynFWiLj8EU .milestoneText{font-style:italic}#mermaid-svg-wRlpvWynFWiLj8EU .doneCritText0,#mermaid-svg-wRlpvWynFWiLj8EU .doneCritText1,#mermaid-svg-wRlpvWynFWiLj8EU .doneCritText2,#mermaid-svg-wRlpvWynFWiLj8EU .doneCritText3{fill:#000 !important}#mermaid-svg-wRlpvWynFWiLj8EU .activeCritText0,#mermaid-svg-wRlpvWynFWiLj8EU .activeCritText1,#mermaid-svg-wRlpvWynFWiLj8EU .activeCritText2,#mermaid-svg-wRlpvWynFWiLj8EU .activeCritText3{fill:#000 !important}#mermaid-svg-wRlpvWynFWiLj8EU .titleText{text-anchor:middle;font-size:18px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU g.classGroup text{fill:#9370db;stroke:none;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family);font-size:10px}#mermaid-svg-wRlpvWynFWiLj8EU g.classGroup text .title{font-weight:bolder}#mermaid-svg-wRlpvWynFWiLj8EU g.clickable{cursor:pointer}#mermaid-svg-wRlpvWynFWiLj8EU g.classGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-wRlpvWynFWiLj8EU g.classGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU .classLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.5}#mermaid-svg-wRlpvWynFWiLj8EU .classLabel .label{fill:#9370db;font-size:10px}#mermaid-svg-wRlpvWynFWiLj8EU .relation{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-wRlpvWynFWiLj8EU .dashed-line{stroke-dasharray:3}#mermaid-svg-wRlpvWynFWiLj8EU #compositionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU #compositionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU #aggregationStart{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU #aggregationEnd{fill:#ECECFF;stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU #dependencyStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU #dependencyEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU #extensionStart{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU #extensionEnd{fill:#9370db;stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU .commit-id,#mermaid-svg-wRlpvWynFWiLj8EU .commit-msg,#mermaid-svg-wRlpvWynFWiLj8EU .branch-label{fill:lightgrey;color:lightgrey;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU .pieTitleText{text-anchor:middle;font-size:25px;fill:#000;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU .slice{font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU g.stateGroup text{fill:#9370db;stroke:none;font-size:10px;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU g.stateGroup text{fill:#9370db;fill:#333;stroke:none;font-size:10px}#mermaid-svg-wRlpvWynFWiLj8EU g.statediagram-cluster .cluster-label text{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU g.stateGroup .state-title{font-weight:bolder;fill:#000}#mermaid-svg-wRlpvWynFWiLj8EU g.stateGroup rect{fill:#ECECFF;stroke:#9370db}#mermaid-svg-wRlpvWynFWiLj8EU g.stateGroup line{stroke:#9370db;stroke-width:1}#mermaid-svg-wRlpvWynFWiLj8EU .transition{stroke:#9370db;stroke-width:1;fill:none}#mermaid-svg-wRlpvWynFWiLj8EU .stateGroup .composit{fill:white;border-bottom:1px}#mermaid-svg-wRlpvWynFWiLj8EU .stateGroup .alt-composit{fill:#e0e0e0;border-bottom:1px}#mermaid-svg-wRlpvWynFWiLj8EU .state-note{stroke:#aa3;fill:#fff5ad}#mermaid-svg-wRlpvWynFWiLj8EU .state-note text{fill:black;stroke:none;font-size:10px}#mermaid-svg-wRlpvWynFWiLj8EU .stateLabel .box{stroke:none;stroke-width:0;fill:#ECECFF;opacity:0.7}#mermaid-svg-wRlpvWynFWiLj8EU .edgeLabel text{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU .stateLabel text{fill:#000;font-size:10px;font-weight:bold;font-family:'trebuchet ms', verdana, arial;font-family:var(--mermaid-font-family)}#mermaid-svg-wRlpvWynFWiLj8EU .node circle.state-start{fill:black;stroke:black}#mermaid-svg-wRlpvWynFWiLj8EU .node circle.state-end{fill:black;stroke:white;stroke-width:1.5}#mermaid-svg-wRlpvWynFWiLj8EU #statediagram-barbEnd{fill:#9370db}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-cluster rect{fill:#ECECFF;stroke:#9370db;stroke-width:1px}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-cluster rect.outer{rx:5px;ry:5px}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-state .divider{stroke:#9370db}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-state .title-state{rx:5px;ry:5px}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-cluster.statediagram-cluster .inner{fill:white}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-cluster.statediagram-cluster-alt .inner{fill:#e0e0e0}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-cluster .inner{rx:0;ry:0}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-state rect.basic{rx:5px;ry:5px}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-state rect.divider{stroke-dasharray:10,10;fill:#efefef}#mermaid-svg-wRlpvWynFWiLj8EU .note-edge{stroke-dasharray:5}#mermaid-svg-wRlpvWynFWiLj8EU .statediagram-note rect{fill:#fff5ad;stroke:#aa3;stroke-width:1px;rx:0;ry:0}:root{--mermaid-font-family: '"trebuchet ms", verdana, arial';--mermaid-font-family: "Comic Sans MS", "Comic Sans", cursive}#mermaid-svg-wRlpvWynFWiLj8EU .error-icon{fill:#522}#mermaid-svg-wRlpvWynFWiLj8EU .error-text{fill:#522;stroke:#522}#mermaid-svg-wRlpvWynFWiLj8EU .edge-thickness-normal{stroke-width:2px}#mermaid-svg-wRlpvWynFWiLj8EU .edge-thickness-thick{stroke-width:3.5px}#mermaid-svg-wRlpvWynFWiLj8EU .edge-pattern-solid{stroke-dasharray:0}#mermaid-svg-wRlpvWynFWiLj8EU .edge-pattern-dashed{stroke-dasharray:3}#mermaid-svg-wRlpvWynFWiLj8EU .edge-pattern-dotted{stroke-dasharray:2}#mermaid-svg-wRlpvWynFWiLj8EU .marker{fill:#333}#mermaid-svg-wRlpvWynFWiLj8EU .marker.cross{stroke:#333}:root { --mermaid-font-family: "trebuchet ms", verdana, arial;} #mermaid-svg-wRlpvWynFWiLj8EU {color: rgba(0, 0, 0, 0.75);font: ;} 生物X 生物Y 小Y,我半分钟之后吃你! 小Y,我一分钟之后吃你! 生物X 生物Y

好了,我们核心点就提取到这里,下一步我们开始归一化分歧点。

归一化分歧点

对于以上核心点,小伙伴们很容易就能想到,我们可以定义两种生物X和Y。然后按分钟执行下去就可以了。如下:

Created with Raphaël 2.3.0 开始 输入生物X,Y 相关性操作 有60分钟? 结束 yes no

其中相关性的操作主要有:
X分裂,Y分裂,X新出生半分钟吃掉一个Y,之后一分钟吃掉一个Y

在这里,对于X分裂,Y分裂,小伙伴们都没有悬念,认为直接写就可以了,比如:
三分钟后:X = X * 2;
两分钟后:Y = Y * 2;
主要分歧点就是X吃Y这一点,因为不是X固定时间去吃Y,而是刚出生半分钟吃掉一个Y,之后每一分钟吃掉一个Y。这时有些小伙伴就有些疑虑了,是不是需要去区分生物X是不是新生的,想到这里,可能整个都乱套了,是不是还要记下来每个生物X是不是新生的,吃过一次Y之后就不是新生的了,就可以一分钟吃一个Y了。但是统计每一生物的新生状态也是一笔不小的开销,既耗费脑细胞,也耗费存储资源。
这个时候,也就是我们感觉到问题的复杂性高,解题难度大时,我们可以想想是不是我们的思路错了,记得曾经有一位伟人说过,任何事情都是有一个最合适,最便捷,最合理的解决方案,如果当你觉得你走的路很累,甚至不通的时候,你可以考虑下是不是你的方向走错了,哈哈,这个伟人就是我。
这时我们在发散下思维,世界万物都一样都是有着宏观和微观的运动方式,当我们宏观难以解决时,我们是否考虑用微观的方式解决问题,当然,如果我们微观难以解决问题时,我们也可以考虑用宏观的方式解决问题。
以下是网上找的一个宏观微观的图片,宏观之中包含微观,微观又透漏着宏观的本质和属性。

从这点出发,我们将操作单位进行扩张,比如之前是一分钟一个操作单位,如果我们将操作单位改为半分钟呢?
这样,六个单位X分裂,4个单位X分裂,X从出生开始一个单位吃掉一个Y,之后每两个单位吃掉一个Y。
这时X吃掉Y的单位分别为:1单位,3单位,5单位,。。。。
看到了正好逢奇数X吃Y。

这时我们很容以的想到X吃Y可以通过判断当前时间单位i,通过i % 2 == 1方式来解决。
这时是不是思路豁然开朗,X生物一个单位吃掉一个Y,之后每逢奇数就吃掉一个Y。

Created with Raphaël 2.3.0 开始 输入生物X,Y i % 2 == 1 X生物吃掉一个Y i%4==0 Y分裂 i%6==0 X分裂 有60分钟? 结束 yes no

至此,是不是小伙伴们已经有了整个逻辑的完整思路了,本来感觉复杂多变,摸不着脑门的问题,经过我们换一个思路,换一种方法,就能用很简单的方法解决掉。

其实所有问题,只要换一个思路,就会有意想不到的效果,解决问题也能变得简单,思路也能变得清晰。
计算机的思路,其实就是由宏观到微观,由微观到宏观的过程,只有具有了这样的大局观,我们遇到问题才能所向披靡,迎刃而解。
其实想想,很多小伙伴们不难理解,计算机就是一个宏观与微观的产物。宏观到其是庞然大物,存储数据量巨大惊人,运算速度更是令人惊叹,百亿次,千亿次的秒级运算量已成为家常之物。微观到,它可以将几千年的历史数据有序的展现,也可以将一张一张的影视图片流式化成电影,可以将细胞分裂,细菌活动等状态一一模拟,展现在人们面前,形成仿真。

遇到问题时只要我们运用计算机的这个有宏观到微观,由微观到宏观的思路,我相信很多问题都可以找到最优解决方案,既省时又省力。

整理解题逻辑点

解题思路:
经过上述流程图,我想信很多小伙伴们已经整理出来了解题逻辑点,对了:
1、输入X生物和Y生物的个数。
2、120个单位,每个单位中,执行如下操作:
逢奇数X吃Y
每四个单位Y分裂
每六个单位X分裂
3,输出最后Y所剩的个数。

具体实现代码如下:

#include<stdio.h>int main()
{int x=10,y=90;for(int i=1;i<=120;i++) //将时间的单位往后延顺到120个单位 {if(i%2==1)//按照题目的条件,正好逢奇数x吃y y=y-x;if(i%4==0)//变成4分钟 y=y*2;if(i%6==0)//变成6分钟 x=x*2;}printf("%d",y);return 0;
}

答案:
0
94371840

好了,今天就说到这里吧,有兴趣的小伙伴可以继续探讨,钻研,看有没有更完美的解法,也欢迎小伙伴们和我联系交流,批评指正。

C语言关于微生物增殖(假设有两种微生物 X 和 Y X出生后每隔3分钟分裂一次......)引发的思考---解题神器(三点一测法)相关推荐

  1. 假设有两种微生物 X 和 YX出生后每隔3分钟分裂一次(数目加倍),Y出生后每隔2分钟分裂一次(数目加倍)。

    package com.dati; public class test3 { /** * 假设有两种微生物 X 和 Y X出生后每隔3分钟分裂一次(数目加倍),Y出生后每隔2分钟分裂一次(数目加倍). ...

  2. c语言中的普通字符包括什么,【判断题】C语言中的字符常量通常有两种形式:普通字符和转义字符。...

    [判断题]C语言中的字符常量通常有两种形式:普通字符和转义字符. 更多相关问题 ---Can you speak French?---Yes, but only____.A.a littleB.lit ...

  3. R语言生存分析COX回归分析实战:两种治疗方法发生肾功能损害的情况

    R语言生存分析COX回归分析实战:两种治疗方法发生肾功能损害的情况 目录

  4. linux中复制字符串出错,C语言实现字符串的复制的两种方法

    本文将要为您介绍的是C语言实现字符串的复制的两种方法,具体操作方法: 利用数组实现 1 #include 2 #include 3 4 void copy_string(char str1[],cha ...

  5. 指针数组下标JAVA_Java语言中可用下标和指针两种方式表示数组元素。

    [判断题]一行可以写多条预处理命令 [判断题]如果一个java程序中有多个类,编译后只生成一个字节码文件,其名字同主类名一致. [判断题]Protected类型的实例变量只能在本类中使用,其他类中不可 ...

  6. 口腔微生物输入量的差异决定了与健康状况相关的两种微生物群肺炎类型

    口腔微生物输入量的差异决定了与健康状况相关的两种微生物群肺炎类型 〉原文:Differential Oral Microbial Input Determines Two Microbiota Pne ...

  7. c语言变量按作用域范围分两种,第02天C语言(10):变量-作用域

    #变量的作用域 ##本小节知识点: ####1.[掌握]变量的作用域 ####2.[掌握]局部变量 ####3.[掌握]全局变量 ####4.[掌握]常见错误 ##1.变量的作用域 * C语言中所有变 ...

  8. C语言字符数组显示钻石,c++两种字符串赋值方式 并介绍 C语言下遍历目录文件的方式...

    c++字符串声明:一种是声明字符数组并赋值,另一种是直接声明string类 #define _CRT_SECURE_NO_WARNINGS #include #include #include &qu ...

  9. 北东地坐标系转换c语言,北东地/东北天两种导航坐标系与姿态转换

    一. 坐标系 1. 导航坐标系 常用的导航坐标系有北东地和东北天两种. 两种坐标系的指向分别定义如下: 1.1 北东地坐标系 X轴:指北; Y轴:指东; Z轴:指地. 1. 2 东北天坐标系 X轴:指 ...

最新文章

  1. 升级CommunityServer2.0出现的两个问题的解决方法
  2. IDEA+selenium+TestNG+java+git+maven+jenkins实现Web UI自动化集成
  3. RGB HSV HLS三种色彩模式转换(C语言实现)
  4. linux运行shellftp上传文件,shell脚本实现ftp上传下载文件
  5. python 分词 识别_python分词如何实现新词识别
  6. 3n+1b 备忘录方法
  7. day08.4-samba共享网盘服务
  8. C++为什么要引入这几种强制类型转换?
  9. GDB+coredump定位段错误
  10. Outlook验证服务器证书,OUTLOOK2019 解决 无法验证您连接到的服务器使用的安全证书...
  11. 机器视觉常用算法C语言实现
  12. 捷联惯导系统学习6.13(状态估计的误差分配与可观测度分析 )
  13. 我们项目中的VO、DTO、DO、PO有什么区别,你用对了吗?
  14. 读《股票大作手回忆录》
  15. 【百度编辑器】修改上传图片缩略图大小
  16. 《经济学通识》十二、谈环保
  17. day05-python数字类型和列表
  18. 初识DataTable
  19. 数据仓库、数据集市、数据湖,你的企业更适合哪种数据管理架构?
  20. Java——继承——Extends

热门文章

  1. 电子计算机的特点与应用,电子信息技术的应用特点与发展
  2. Google Spanner论文翻译
  3. 【PCB设计】晶振时钟电路布局设计
  4. 微信小程序-初始导航页面
  5. android 锁屏壁纸 保存,小米手机锁屏画报壁纸怎么保存?
  6. 办公室职位职务词汇2
  7. 基于改进YOLOv5的斑马线和汽车过线行为检测
  8. 我见过的极品代码bug
  9. 散文秋天的树叶飘落我的心
  10. 【信号与系统】卷积积分及计算方法详解