⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 p1998_1.pas

📁 noip1998-2004普及
💻 PAS
字号:
program p1998_1(input,output);
var k,count,i,j,s:integer;a:array[0..9] of integer;
begin
    assign(output,'three.out');
    rewrite(output);
    for i:=123 to 329 do begin
       fillchar(a,sizeof(a),0);
       for j:=1 to 3 do begin
          s:=i*j;
          while s>0 do begin a[(s mod 10)]:=1;s:=s div 10;end;
       end;
       count:=0;
       for k:=1 to 9 do count:=count+a[k];
       if count=9 then begin write(i,' ',2*i,' ',3*i);writeln;end;
    end;
    close(output);
end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -