hiho week 249 register

Ended

Participants:104

Verdict:Accepted
Score:100 / 100
Submitted:2019-04-06 22:23:03

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>
using namespace std;
char maze[10][10];
int n, m;
int player_hp;
int player_attack;
int entrance_i;
int entrance_j;
unsigned allmask;
int visited[1 << 28];
struct Monster
{
    int hp;
    int attack;
    char type;
    int cost[6];
    int buff[6];
    void set(int h, int a, char t)
    {
        hp = h;
        attack = a;
        type = t;
    }
    void cal()
    {
        for (int i = 0; i <= 5; ++i)
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX