1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#include "aoc.h"
namespace aoc2015 {
static spell bosskill = {0, 1, 8, 0, 0, 0, 0};
static spell spells[5] = {
{53, 1, 4, 0, 0, 0, 0},
{73, 1, 2, 2, 0, 0, 0},
{113, 6, 0, 0, 0, 7, 0},
{173, 6, 3, 0, 0, 0, 0},
{229, 5, 0, 0, 101, 0, 0},
};
bool effects(wizard&);
std::pair<int, int> day22(wizard me, wizard boss) {
me.spells[0] = & bosskill;
for (int i = 0; i < 5; i++) {
boss.spells[i] = spells + i;
}
return {0, 0};
}
}
|