Advertisement
RadioNurshat

Kak tebe takoye, Azat? Po suti tol'ko 1 cycle

Dec 27th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.64 KB | None | 0 0
  1. const w = 7; h = 7;
  2. var i,j:integer;
  3. a:array[1..h,1..w] of integer;
  4. b:array[1..19] of integer;
  5. begin
  6. b[1]:=1040; b[2]:=1079; b[3]:=1072; b[4]:=1090; b[5]:=32;
  7. b[6]:=1087; b[7]:=1080; b[8]:=1076; b[9]:=1086; b[10]:=1088;
  8. b[11]:=1072; b[12]:=1089; b[13]:=32; b[14]:=1077; b[15]:=1073;
  9. b[16]:=1072; b[17]:=1085; b[18]:=1099; b[19]:=1081;
  10.  
  11.  
  12.  
  13. randomize;
  14. for i:=1 to h do
  15. for j:=1 to w do
  16. a[i,j]:=0;
  17.  
  18. for i:=1 to h do
  19. if i<=h div 2 + 1 then
  20. for j:=5-i to i+3 do a[i,j]:=1 else
  21. for j:=i-3 to 11-i do a[i,j]:=1;
  22.  
  23. for i:=1 to h do begin
  24. for j:=1 to w do
  25. write(a[i,j]:3);
  26. writeln;
  27. end;
  28. writeln;
  29. for i:=1 to 19 do
  30. write(chr(b[i]));
  31. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement