hiho week 99 register

Ended

Participants:253

Verdict:Accepted
Score:100 / 100
Submitted:2016-05-24 21:16:23

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<vector>
using namespace std;
bool allget(int(*a)[8][2])
{
    for (int i = 0; i < 8; i++)
    {
        for (int j = 0; j < 8; j++)
        {
            if (a[i][j][0] == 0)
                return false;
        }
    }
    return true;
}
int check(int (*a)[8][2],int (*b)[8][2],int (*c)[8][2])
{
    int aa = 10000;
    for (int i = 0; i < 8; i++)
    {
        for (int j = 0; j < 8; j++)
        {
            if (aa > (a[i][j][1] + b[i][j][1] + c[i][j][1]))
                aa = a[i][j][1] + b[i][j][1] + c[i][j][1];
        }
    }
    return aa;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX