===== PascalABC.NET =====
begin
var s: array of string := (
'bbbbwwbbbb',
'bbbwwwwbbb',
'bbwwwwwwbb',
'bwwbwwbwwb',
'bwwwbbwwwb',
'bbbbwwbbbb');
var a := MatrFill(8, 10, 0);
for var i := 0 to 7 do
for var j := 0 to 9 do
if s[i][j + 1] = 'b' then
a[i, j] := i + j + 2;
a.Println(3)
end.
===== PascalABC.NET =====
begin
var s: array of string := (
'bbbbwwbbbb',
'bbbwwwwbbb',
'bbwwwwwwbb',
'bwwbwwbwwb',
'bwwwbbwwwb',
'bbwwwwwwbb',
'bbbwwwwbbb',
'bbbbwwbbbb');
var a := MatrFill(8, 10, 0);
for var i := 0 to 7 do
for var j := 0 to 9 do
if s[i][j + 1] = 'b' then
a[i, j] := i + j + 2;
a.Println(3)
end.