Re: [問題] 類似二元樹問題
b1 = 1 # input for AA for the first run
b2 = b1 # input for BB for the first run
a1, a2=(0, 0) # so that a1 < 5 and a2 < 5
while a1 < 5 and a2 < 5:
a1, a2=AA(b1)
b1, b2=BB(a1, a2, b2)
這樣子?
※ 引述《MicroPtt (Mission Start)》之銘言:
: 你好~這個問題困惱我很久了~是個類似二元樹的問題
: AA_one < 5 結束
: AA_two < 5 結束
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 162.105.195.208
→
03/08 01:32, , 1F
03/08 01:32, 1F
※ 編輯: perturb 來自: 162.105.195.208 (03/08 02:30)