#1049

1049 数列的片段和 (20 分)

给定一个正数数列,我们可以从中截取任意的连续的几个数,称为片段。例如,给定数列{0.1,0.2,0.3,0.4},我们有(0.1)(0.1,0.2)(0.1,0.2,0.3)(0.1,0.2,0.3,0.4)(0.2)(0.2,0.3)(0.2,0.3,0.4)(0.3)(0.3,0.4)(0.4)这10个片段。给定正...
代码星球 ·2020-04-08

1049 Counting Ones (30)

Thetaskissimple:givenanypositiveintegerN,youaresupposedtocountthetotalnumberof1'sinthedecimalformoftheintegersfrom1toN.Forexample,givenNbeing12,therearefive1'si...
代码星球 ·2020-04-08

1049: 贝贝的车牌问题(car)

http://oj.lcsyzx.cn/JudgeOnline/problem.php?id=1049vara:string[10];m,n,t:integer;beginreadln(m);n:=0;t:=m;whilem>0dobeginreadln(a);Casea[1]of{关于情况处理}'A','B',...
首页上一页12下一页尾页