![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
poj
wjjayo
这个作者很懒,什么都没留下…
展开
-
4009
<br />因为只有二十四个数,并且答案唯一 , 所以可以将答案保存到ans数组中<br />#include <iostream>#include <cstring>using namespace std ;//以下为找答案的过程//int a[1 << 24 ][25] ;//int n , c ;//double ans = 0 ;//int data[25][25] ;////void printsubset( int n , int s )//{原创 2010-11-03 17:23:00 · 707 阅读 · 0 评论 -
poj 1321
<br />回溯<br />#include <iostream>#include <cstdio>#include <cstring>#include <cstdlib>#include <cmath>using namespace std ;const int maxn = 9 ;char map[maxn][maxn] , vis[maxn] ;int ans , n , k , cnt ;void init(){ memset( vi原创 2011-03-05 18:37:00 · 394 阅读 · 0 评论