You are not logged in. Please login at www.codechef.com to post your questions!

×

weak testcase !!! Sereja and Array and Subtracting.

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

admin123's gravatar image

5★admin123
1.2k12
accept rate: 28%

edited 29 Dec '15, 10:27

admin's gravatar image

0★admin ♦♦
19.8k350498541


@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.

link

answered 23 Nov '15, 04:58

shikharid's gravatar image

6★shikharid
713
accept rate: 0%

@shikharid its giving answer as 4 which is correct only !!!

link

answered 23 Nov '15, 02:20

tihorsharma123's gravatar image

2★tihorsharma123
49718
accept rate: 15%

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.

link

answered 23 Nov '15, 01:05

shikharid's gravatar image

6★shikharid
713
accept rate: 0%

edited 23 Nov '15, 01:10

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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,591 times

last updated: 22 Feb '16, 13:53