×

# doubt in CSTRIKE1

 0 https://www.codechef.com/COSE2015/problems/CSTRIKE1 in the above problem consider the below test case: t=1 n=2 7 3 o/p should "NO" because both can't kill enemies at rhe same time... but in the successful submission it is "YES" asked 01 Sep '15, 16:33 36●2 accept rate: 20%

 1 Yes..it should be "NO" and my solution gives the same... My soln answered 01 Sep '15, 16:46 204●7 accept rate: 9% your solution is successful?? (01 Sep '15, 17:14) Yes, as it shows... (01 Sep '15, 17:23)
 1 It is a simple problem, that outputs "YES" if the total strength can be divided into two parts, otherwise "NO" In 7 3 the output should be YES answered 01 Sep '15, 19:14 3★bradley 656●2●3●21 accept rate: 20% 1 in case of 7 3 sinchan and ace can't kill enemies at same time because one take 7 and other take 3..so o/p should "NO". (01 Sep '15, 19:49)
 1 I also encountered the same problem in this set : 2 4 5 7 10 12 . Used this input on a successful submission. They can't kill the terrorists at the same time in whatever way they try. But, the output shows yes. Any explanation for such situations ? answered 01 Sep '15, 23:50 0★borodor 11●1 accept rate: 0% yes..the same problem occurs with me.. (02 Sep '15, 00:08)
 1 I am the author for that question. I am extremely sorry for weak test cases. The question can be broken down to Can an Array be partitioned into two non-empty equal sub-arrays. For implementation you can visit here http://www.geeksforgeeks.org/dynamic-programming-set-18-partition-problem/ answered 02 Sep '15, 09:33 415●1●14 accept rate: 8%
 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:

×4

question asked: 01 Sep '15, 16:33

question was seen: 557 times

last updated: 02 Sep '15, 09:33