作者LPH66 (ha(ruhi|yate)ism)
看板java
标题Re: [问题] sudoku
时间Fri May 4 07:29:49 2007
※ 引述《geo760217 (Tc)》之铭言:
: undo 之後值又变成不合法的了= =
: 这是我的source code
: 真的不知道该在哪里undo
这麽说吧
在某格每试一个数字 是要这样做:
(1) 试某数字
(2) 交给後面的人试着往下填
(3) 如果後面的人告诉我此路不通
(3a)
清掉换下一个,回到1
(当然如果都试过了就往上回报此路不通)
(3b) 否则(也就是後面的人告诉我 找到答案了)
就往上回报我找到答案了
黄色的就是你要的东西
--
'Oh, Harry, dont't you
see?' Hermione breathed. 'If she could have done
one thing to make
absolutely sure that every single person in this school
will read your interview, it was
banning it!'
---'Harry Potter and the order of the phoenix', P513
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 192.192.197.116