each item game level the high level high basic parameter item we shall consider follow basic parameter attack atk defense def resistance different type impact resEach item belong class in problem consider class weapon armor orbbesides there s new world hide inside item we increase item level travel world we capture socalle resident Item WorldResidents creature live inside item each resident give bonus item currently locate we consider resident type gladiator improve item atk sentry improve def physician improve reseach item size parameter the parameter limit maximum number resident live inside item we resident item within moment time resident item item free place new resident we remove resident item leave outside inside item moment timeLaharl certain number item he want resident item equip weapon armor defensive orb the weapon atk large possible end among equip pattern contain weapon maximum atk parameter choose one armor def parameter large possible among equipment pattern choose defensive orb large possible res parameter Values parameter def re weapon atk re armor atk def orb indifferent LaharlFind optimal equipment pattern Laharl