#include<iostream> #include<cmath> #include<algorithm> #include<memory> #include<string.h> using namespace std; int a[105][1005]; int maxh = 0; int n, h; struct node{ int x, y, z; }b[105]; void dfs(int i,int hp ,int sp) { if (i >= n || hp <= 0)return; if (sp...