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

×

Chef and Modulo Game

Can anyone tell in the given test cases like 4 4 .why we didn't use pair (1,2,1)or(2,1,1),etc .As from these ones we get M=2 rather than M=1;

asked 04 Jan, 21:52

rishu_1936's gravatar image

3★rishu_1936
-31
accept rate: 0%

Don't ask questions about on going contest on discuss... If you need clarification then Ask in comments section below problem statement.. you query will be answered if question is relevant

(05 Jan, 11:08) l_returns5★

I solved this question for 100 points, however I had a wrong calculation on an edge case. I think the test cases are weak.

As I tested,the wrong calculation on an edge case is included in the question. I think the test cases may be wrong. I don't want to explain further because it may suggest solution to other people so I would like to talk to the author by email. If you can please email me at chauhain@buffalo.edu

link

answered 05 Jan, 21:05

chauhain's gravatar image

4★chauhain
122
accept rate: 0%

edited 05 Jan, 21:15

Let's talk on codeforces personal messages ? My handle smit_mandavia

(06 Jan, 08:22) l_returns5★

Hi, please discard my comment above, I was actually overthinking and realize that everything runs perfect :) Sorry for the question :)

(06 Jan, 14:54) chauhain4★

Okay np...

(06 Jan, 18:45) l_returns5★

*Don't forget to mention that you are problem writer of this problem.

(10 Jan, 00:39) aryanc4035★

Yes I am the author of this problem

(11 Jan, 09:04) l_returns5★

for n=4 and p=4 if you use any of the pair(1,2,1) or(2,1,1) the value of M you will get is 0 not 2

link

answered 10 Jan, 00:41

dilipchauhan18's gravatar image

3★dilipchauhan18
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:

×200

question asked: 04 Jan, 21:52

question was seen: 1,196 times

last updated: 11 Jan, 09:04