数学建模社区-数学中国

标题: 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啊?! D" |, U/ z4 H, m# Y
还想请各位讲解讲解。
作者: 模客    时间: 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":
/ h: g, J+ j$ ~
3 I1 \$ D9 B5 s* N % _( @5 n, `3 M; n( i  s5 N* ^
Region     ) K$ |" b0 \& y! o
* f5 T/ a, M( |* T. V5 P

% @; b& l. t2 R* }- Sudoku begins with some of the grid cells already filled with numbers: 7 w6 j' f' `$ N) u" }7 |. ?

' G* l% D3 u' j3 b+ V : e/ I; J6 X4 W# B
7 b5 I) i/ y8 l8 n
- 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: 9 F& m' o+ q, [% x& @3 O; I  d

5 z" r6 d4 a1 S0 v3 A) p8 L1. Number can appear only once on each row: ! g, L" w; p# L+ S: ?6 N
/ J- }  I: J- G6 S/ L) x- F
Allowed   - z" K# s- |/ r7 \
   
0 m  B3 x8 o6 K! ANot allowed   
& Z2 E8 G0 t  d* c% s( J
7 }! [% ?# `3 C7 g5 `9 j. z2. Number can appear only once on each column:
* {8 W9 K$ X, t% u
/ l. r9 F. {* o- B* Z! k2 ]Allowed    Not allowed  
! Y- ]  s/ ^7 Y% c, e; _) Y8 O, p    2 }2 Y" D3 t5 }* M/ Q6 S' O

8 Y( u( j, q0 \- g& ~, [* |  @3. Number can appear only once on each region: 7 R! ?4 c2 V6 z) l, O2 }

2 |, }" E- B6 s: w, ]Allowed    Not allowed  
2 W) c- f1 k; \' Q* Y* q    + R! T! L3 u3 z% V6 G2 ^& p0 d

) v9 n) a2 t  e9 D) B  ~- 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