- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
program lucky;
var a0,a1,a2,a3,a4,a5,a6: integer;
begin
for a0:= 0 to 9 do
for a1:= 0 to 9 do
for a2:= 0 to 9 do
for a3:= 0 to 9 do
for a4:= 0 to 9 do
for a5:= 0 to 9 do
if (a0+a1+a2)=(a3+a4+a5) then
begin
writeln(a0,a1,a2,a3,a4,a5);
break;
end;
readln;
end.