数学建模社区-数学中国

标题: sudoku.CPP [打印本页]

作者: jixie0604    时间: 2009-1-12 17:24
标题: sudoku.CPP
这个m文件,给大家分享,也许有用。关于sudoku的。

m文件代码.doc

32.5 KB, 下载次数: 8, 下载积分: 体力 -2 点

新建 Microsoft Office Word 文档.doc

33 KB, 下载次数: 9, 下载积分: 体力 -2 点


作者: ynuzgw9    时间: 2009-1-13 17:13
well done!
作者: 2002sjl2908    时间: 2009-1-13 21:08
好的  谢谢
作者: 模客    时间: 2009-1-13 22:06
什么是sudoku啊?( X8 E5 g( w0 J4 T, S
还想请各位讲解讲解。
作者: 模客    时间: 2009-1-13 22:07
好像楼主使用了混合编程,
作者: 沉思的沼泽    时间: 2009-1-16 20:01
soduku?????what?
作者: 无忧    时间: 2009-1-26 17:59
去年做的就是这个,后来又辛苦了一个月,才终于作出点东西。
作者: 无忧    时间: 2009-1-26 18:00
Sudoku is played over a 9x9 grid, divided to 3x3 sub grids called "regions":
+ ^$ T# `) N, K5 x5 W+ v% X6 m8 G8 ?( G  D9 a* _

) o4 K+ ?' `& v$ l% w2 s# e/ CRegion     
8 w# D- \3 c/ S5 M6 K( [( D
8 w" t/ c- J  J3 G, i" |9 w) v9 Y6 ~- E: ^! a! ^: c4 C/ s
- Sudoku begins with some of the grid cells already filled with numbers: + `5 d/ o" x9 d
4 l9 R# ?( M7 L1 S( b

2 T5 \' ~" E1 `& c3 ?0 }, k$ f! b4 e6 \$ D
- The object of Sudoku is to fill the other empty cells with numbers between 1 and 9 (1 number only in each cell) according the following guidelines: + m; i# @0 }) Z9 ?8 K
7 E1 ?+ j4 I) U3 R% ]
1. Number can appear only once on each row:
: I, r7 \( P3 Y9 Z  U# [/ z. {8 r2 g( i" k& J9 Y/ z
Allowed   * H6 t6 T, Q% H& k4 h# @! p
   
- ]' _, T1 \& F/ hNot allowed   
! a) ?  k0 j! R. G( x- j9 o2 a7 [/ V) @/ p
2. Number can appear only once on each column:
' Q& b% H' f0 k( _/ {3 i% r
* ]+ x3 E! e3 }- BAllowed    Not allowed  
/ Q' g, M* J/ V/ [7 o   
- t, F% |' A- {" R. N" j0 Y
1 R5 R/ o; J; p3 }3. Number can appear only once on each region: 0 m: x0 `3 ?* {' m( t
7 Q; m: F9 {7 d) w: v" M2 l
Allowed    Not allowed  
6 `( n" H+ Q# J    $ F' W5 s$ ?  A

( |& ]  G: [6 m, i, P. v- A summary of these guidelines would be, that a number should appear only once on each row, column and a region.
作者: 无忧    时间: 2009-1-26 18:01
翻译成中文就是九宫格。
作者: ycliu1989    时间: 2009-1-31 16:26
数独吧,去年的竞赛题
作者: cherish19880105    时间: 2009-2-1 10:21
应该大家都模拟了这个题目吧·
作者: 一飞冲天    时间: 2011-1-22 16:44

作者: alair002    时间: 2012-2-5 17:23
囧了,下了无数不知道用哪个有用5420702115630222




欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5