摘要:
暴力搜素应该会写吧,这个。。。。#include <string.h>#include <stdio.h>int rec[8][8];int s[8];int n;int min;int max;void Bscktrack(int cout);int main(){ int i,j; while (1) { scanf("%d",&n); if (n==-1) { break; } for (i=1;i<=n;i++) { for (j=1;j<=n;j++) { scanf("%d",&rec[i] 阅读全文