#include <iostream> #include <vector> #include <stack> using namespace std; void compute(stack<int>& x, stack<int>& y, int& sum) { int a = x.top(); x.pop(); int b = y.top(); y.pop(); int c = x.top(); y.pop(); sum += a * b * c; y.push(b); } int main() { int n...