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

×

Weak (or non-existent) test cases in AlgoFlux19.1's "Let's Play A Game"?

In the question PRMGM, many accepted solutions (such as this and this) fail for a simple test case. These solutions have ignored the prime numbers and yet managed to somehow get an AC verdict!

1
2
2 3

Or did I interpret the question incorrectly? Although a few accepted solutions like this one do give the opposite output.

asked 28 Jan, 01:57

kvaluruk's gravatar image

4★kvaluruk
162
accept rate: 50%

edited 28 Jan, 02:09


Yes, you are correct , i myself have analysed many solution which are not giving the answers as expected . Few of them are:

1.solution_1 Test Case:1 5 2 2 3 5 7
2. solution_2 Test Case:1 4 5 3 7 2

link

answered 28 Jan, 16:27

dhakajii's gravatar image

4★dhakajii
1
accept rate: 0%

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:

×365
×303

question asked: 28 Jan, 01:57

question was seen: 159 times

last updated: 28 Jan, 16:27