Towers of Hanoi: Difference between revisions

Content added Content deleted
(+ МК-61)
Line 1,199: Line 1,199:
Move plate 2 from tower 2 to tower 3
Move plate 2 from tower 2 to tower 3
Move plate 1 from tower 1 to tower 3</lang>
Move plate 1 from tower 1 to tower 3</lang>

=={{header|МК-61/52}}==
<lang>^ 2 x^y П0 <-> 2 / {x} x#0 16
3 П3 2 П2 БП 20 3 П2 2 П3
1 П1 ПП 25 КППB ПП 28 КППA ПП 31
КППB ПП 34 КППA ИП1 ИП3 КППC ИП1 ИП2 КППC
ИП3 ИП2 КППC ИП1 ИП3 КППC ИП2 ИП1 КППC ИП2
ИП3 КППC ИП1 ИП3 КППC В/О ИП1 ИП2 БП 62
ИП2 ИП1 КППC ИП1 ИП2 ИП3 П1 -> П3 ->
П2 В/О 1 0 / + С/П КИП0 ИП0 x=0
89 3 3 1 ИНВ ^ ВП 2 С/П В/О</lang>

Instruction: РA = 56; РB = 60; РC = 72; N В/О С/П, where 2 <= N <= 7.


=={{header|Modula-3}}==
=={{header|Modula-3}}==
Line 2,460: Line 2,473:


[[Category:Puzzles]]
[[Category:Puzzles]]
to>{$to}