#define OLC_PGE_APPLICATION #include "pixelGameEngine.h" #include "olcutils.h" #include "BigInt.h" using namespace olc; // C++ program to implement // the above approach struct Monkey{ std::vector items; char operation; int operation_amt; int divisible; int trueThrow; int falseThrow; int inspAmt; }; int main() { std::vector monkeys; std::ifstream file("input"); monkeys.push_back({{89,95,92,64,87,68},'*',11,2,7,4}); monkeys.push_back({{87,67},'+',1,13,3,6}); monkeys.push_back({{95, 79, 92, 82, 60},'+',6,3,1,6}); monkeys.push_back({{67, 97, 56},'*',-1,17,7,0}); monkeys.push_back({{80, 68, 87, 94, 61, 59, 50, 68},'*',7,19,5,2}); monkeys.push_back({{73, 51, 76, 59},'+',8,7,2,1}); monkeys.push_back({{92},'+',5,11,3,0}); monkeys.push_back({{99, 76, 78, 76, 79, 90, 89},'+',7,5,4,5}); for (int round=0;round<10000;round++){ for (int i=0;i