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

×

Regarding the problem "Chef and Periodic Sequence"

@admin, Can you please let me know in the problem "Chef and Periodic Sequence"(Problem Code-PERIODIC) of SnackDown Round 1A,in which test cases,my solution went wrong? After the contest was finished,I copied one of the codes, which produced correct results and tested it with more than 1000 test cases against my code(I used an input generator and an output checker) and both the codes produced same results. Then I myself looked for any corner cases left behind but unfortunately I couldn't find it. So, after spending 3-4 hours, I couldn't find that test case in which my solution went wrong. Can you please provide me that test case?

asked 22 Oct '18, 00:37

arkadeep_2000's gravatar image

2★arkadeep_2000
12
accept rate: 0%


Please provide a link to your solution.

link

answered 22 Oct '18, 00:54

vipin1407's gravatar image

4★vipin1407
2147
accept rate: 10%

try 1 -1 1 -1 1 -1 ans should be 2 and 2 -1 2 -1 2 -1 ans should be 1

and 3 -1 3 -1 3 -1 ans impossible

link

answered 22 Oct '18, 00:56

alphaxtitan_v1's gravatar image

1★alphaxtitan_v1
1
accept rate: 0%

Answer of 2 -1 2 -1 2 -1 should be 2 @alphaxtitan_v1 (2 1 2 1 2 1)

link

answered 22 Oct '18, 10:40

arkadeep_2000's gravatar image

2★arkadeep_2000
12
accept rate: 0%

link

answered 22 Oct '18, 10:45

arkadeep_2000's gravatar image

2★arkadeep_2000
12
accept rate: 0%

link

answered 16 Nov '18, 22:28

ajaysaundeep's gravatar image

3★ajaysaundeep
01
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

question asked: 22 Oct '18, 00:37

question was seen: 247 times

last updated: 16 Nov '18, 22:28