Search found 1 match

by ibrahim_habib
Mon Jul 23, 2012 8:35 pm
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 51724

Re: 11059 - Maximum Product

this is my code , each time I submit this problem i got WA :x , please anyone helps me
#include<iostream>
using namespace std;
int main()
{
int n, product[18] = {0}, counter = 1;
long long res;
while(cin >> n)
{
res = 1;
for(int i = 0; i < n; i ++)
cin >> product[i];

for(int i = 0; i < n ...

Go to advanced search