https://www.acmicpc.net/problem/16434코드#include #include using namespace std;#define FASTIO ios::sync_with_stdio(false); cin.tie(NULL);typedef long long ll;typedef struct { ll t; ll a; ll h; } room;vector r;ll n, h;bool simul(ll m) { ll ca = h; ll ch = m; ll tmp; for (int i = 0; i > n >> h; r = vector(n); for (int i = 0; i > r[i].t >> r[i].a >> r[i].h; ll s = 1, e = 1e18, mid, ans = 0; while (..