level 7
var n,i,j:longint;
begin
read(n);
for i:=1 to n do
begin
write('':n-i);
for j:=1 to i*2-1 do write('*');
write('':(n-i)*2);
for j:=1 to i*2-1 do write('*');
write('':(n-i)*2);
for j:=1 to i*2-1 do write('*');
writeln
end
end.
2015年05月30日 12点05分
3
可是我的bug在哪里?
2015年05月30日 12点05分
回复
��ȥ���ֺ���
:你的程序连样例都没过。
2015年05月30日 13点05分
回复 SSSwc03 :。。。可是你的貌似不能运行
2015年05月30日 14点05分
level 2
var n,i,j:longint;
begin
readln(n);
for j:=1 to n-1 do write(' ');
write('*');
for j:=1 to 2*(n-1) do write(' ');
write('*');
for j:=1 to 2*(n-1) do write(' ');
write('*');
writeln;
for i:=1 to n-1 do
begin
for j:=1 to n-i-1 do write(' ');
for j:=1 to 2*i+1 do write('*');
for j:=1 to 2*(n-i-1) do write(' ');
for j:=1 to 2*i+1 do write('*');
for j:=1 to 2*(n-i-1) do write(' ');
for j:=1 to 2*i+1 do write('*');
writeln;
end;
end.
2015年06月10日 10点06分
4
level 9
我来个低质量回复吧
writeln" * * * "
writeln" *** *** ***"
下面以此类推,绝对过样例。只能骗分数用
2015年06月10日 11点06分
5
反正大神都打过正确答案了
2015年06月10日 11点06分