[Offer收割]编程练习赛12 register

Ended

Participants:1323

Verdict:Accepted
Score:100 / 100
Submitted:2017-04-02 13:06:37

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
#include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#include <cstring>
#include <string.h>
#include <queue>
#include <stack>
#include <stdlib.h>
#include <algorithm>
#include <cmath>
#include <map>
#include <set>
#include <vector>
#include <time.h>
#include <iostream>
#include <bitset>
#define INF 0x3f3f3f3f
using namespace std;
int cnt = 0;
 int n,m;
char mark[200][200];
int a[100000];
int dx[]={0,0,1,-1};
int dy[]={1,-1,0,0};
bool ok(int x,int y)
{
    return x>=0&&x<n&&y>=0&&y<m;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX