hiho week 71 register

Ended

Participants:210

Verdict:Accepted
Score:100 / 100
Submitted:2015-11-08 17:16:29

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 <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
const int K = 20;
const int H = 100;
const int W = 100;
const int N = 1000;
const int M = 1000;
const int starNum = 20;
int starMap[K][starNum + 1][2];
bool SKY[N][M];
int main(){
    //freopen("input.txt", "r", stdin);
    memset(starMap, -1, sizeof starMap);
    memset(SKY, 0, sizeof SKY);
    int k;
    scanf("%d", &k);
    for (int t = 0; t < k; ++t)
    {
        int h, w;
        scanf("%d %d", &h, &w);
        getchar();
        int e = 0;
        for (int i = 0; i < h; ++i)
        {
            for (int j = 0; j < w; ++j)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX