We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Project Euler #236: Luxury Hampers
Project Euler #236: Luxury Hampers
Sort by
recency
|
64 Discussions
|
Please Login in order to post a comment
For a good 5 minutes there I thought i was going loopy haha... what the hell is this question.
include
include
include
include
include
include
using namespace std;
void Luxury_Hampers(int n, vector a, vector b){ long sum1=0,sum2=0; int sum_of_a_till_now=0; int sum_of_b_till_now=0;
}
int main() { /* Enter your code here. Read input from STDIN. Print output to STDOUT */ int n; cin>>n; vector a; vector b; for (int i=0; i>x; a.push_back(x); } for (int i=0; i>x; b.push_back(x); }
}
passed 6/16 test cases. failed 10/16 due to timeout. finding a way to optimize it. any suggestion?
problem doesn,t contain proper data as spoilage data is not provided