hiho week 32 register

Ended

Participants:133

Verdict:Accepted
Score:100 / 100
Submitted:2015-02-07 20:48:05

Lang:G++

Edit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
//Minesweeping III
//hiho32
#include<algorithm>
#include<cassert>
#include<cstdio>
#include<cmath>
#include<ctime>
#include<cstring>
#include<vector>
using namespace std;
int b[256][256];
char mine[256][256];
int x[20];
int y[20];
int l;
    int n;
    int m;
int ans[2024];
int p;
void setmine(int s){
    int i;
    for(i=0;i<l;i++){
        mine[x[i]][y[i]]=(s>>i)&1;
    }
}
bool ok(){
    int i;
    int j;
    int t;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX