翻硬币问题分析var m:integer;function solve(m:integer):integer;var i,t,d:integer;flag:Boolean;beginif (m = 1) thensolve := 2 else begind := 2*m+1; t := 2; i := 1; flag := False;repeatif (t = 1) thenbeginsolve := i*m ; flag := True;endelse if (
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/17 04:22:02