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

×

weak test in encoder https://www.codechef.com/ENCO2018/

https://www.codechef.com/viewsolution/21215759 this solution should be incorrect because not considering diagonal case but gives right answer. weak test case

This question is marked "community wiki".

asked 27 Oct '18, 00:51

ajaymalik's gravatar image

5★ajaymalik
12
accept rate: 0%

Even in Second Largest Element problem,
https://www.codechef.com/viewsolution/21221677
This solution gives output as 1 for [3,3,3,3,3] and K=3.
Answer should be 0 I guess.

(27 Oct '18, 01:15) vohraa3★

I found the same thing. The test cases are checking for only CHECK position and not for CHECKMATE position ;

Only CHECK CHECKER got AC. The real solution should be this.

link

answered 27 Oct '18, 01:04

thesmartguy's gravatar image

4★thesmartguy
665
accept rate: 9%

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

question asked: 27 Oct '18, 00:51

question was seen: 185 times

last updated: 27 Oct '18, 01:21