娄山中学noip吧 关注:137贴子:1,769
  • 6回复贴,共1

今天有作业贴吗?

取消只看楼主收藏回复

有的话说一下


IP属地:上海1楼2012-05-18 19:58回复
    我就发作业


    IP属地:上海2楼2012-05-18 19:58
    回复
      算了,还是发吧。


      IP属地:上海3楼2012-05-18 20:01
      回复
        1.(a,b,c,d中选三个,输出所有的可能)
        var
        i,j,k:char;
        begin
        for i:='a' to 'd' do
        for j:='a' to 'd' do
        for k:='a' to 'd' do
        if (i<>j) and (j<>k) and (k<>i) then writeln(i,j:3,k:3);
        readln
        end.
        


        IP属地:上海4楼2012-05-18 20:02
        回复
          2.(a,b,c,d中三个数组合)
          var
          i,j,k:char;
          begin
          for i:='a' to 'b' do
          for j:=chr(ord(i)+1) to 'c' do
          for k:=chr(ord(j)+1) to 'd' do
          writeln(i,j:3,k:3);
          readln
          end.


          IP属地:上海5楼2012-05-18 20:03
          回复
            3.(五个数组合三位数),(可能性加数量)
            var
            i,j,k:char;
            n:longint;
            begin
            n:=0;
            for i:='1' to '5' do
            for j:='1' to '5' do
            for k:='1' to '5' do
            begin
            write(i,j,k,' ');
            n:=n+1;
            end;
            writeln('n=',n);
            readln
            end.
            


            IP属地:上海6楼2012-05-18 20:04
            回复
              快批啦


              IP属地:上海7楼2012-05-18 20:39
              回复