this is a problem on the uva judge uva 10106 always gives me timelimit exceeded and i dont know why could someone help ?
#include <iostream>#include <math.h>#include <vector>#include <string>#include <algorithm>using namespace std;int l1 = 0;int l2 = 0;void product(string a, string b) {vector<int> result(700, 0);int pos = 0;int cursor = 0;int carry = 0;for (int i = 0; i < l1;pos = 0, i++ , cursor++) {
Read more… (24 words)