×

# weak testcase !!! Sereja and Array and Subtracting.

 2 there are many submission with different output has been accepted may be due to weak test case this is my solution https://www.codechef.com/viewsolution/8814397 and this is others solution- https://www.codechef.com/viewsolution/8815530 both solution gives different output at 1 4 12 26 34 76 according to my approach gcd is 2 and acco. to this one gcd is 4 for (12 (min),76 (max)) there are so many solution with different output this was one of them i dont know my method is correct or not if i am wrong them please tell me i hope my solution and approach is correct. i found weak test cases many times and suggested to contest admin may be this time also :) asked 23 Nov '15, 00:33 5★admin123 1.2k●12 accept rate: 28% 0★admin ♦♦ 19.8k●350●498●541

 1 The test cases are weak. Submission : https://www.codechef.com/viewsolution/8818267 On input : 3 7 11 19 The answer should be 3 but it gives answer as 12.Still Accepted. answered 23 Nov '15, 01:05 71●3 accept rate: 0%
 1 @tihorsharma123 The input is: 3 7 11 19.. that is n = 3 and the values in the array are 7, 11, 19.The answer should be 3. answered 23 Nov '15, 04:58 71●3 accept rate: 0%
 0 @shikharid its giving answer as 4 which is correct only !!! answered 23 Nov '15, 02:20 497●1●8 accept rate: 15%
 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:

×161
×12

question asked: 23 Nov '15, 00:33

question was seen: 1,583 times

last updated: 22 Feb '16, 13:53