×

# WA :Maximize It

 0 My Solution : https://www.codechef.com/viewsolution/21692278 Working well with most of my Testcases ; Please help ! asked 24 Nov '18, 22:39 19●5 accept rate: 0%

 0 It does not work for the following simple test case: 1 5 2 1 1 3 3 8  Your code generates 3, while it should be 4. The code has multitude of problems, starting with  int n,k; char numbers[n+1]; int sum=0,sum1=0,prod=1,fprod=1,res=0,p; cin>>n>>k; for(int i=0;i>p; for(int j=0;j
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×1,901
×539
×21
×20

question asked: 24 Nov '18, 22:39

question was seen: 218 times

last updated: 25 Nov '18, 17:25