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

×

Best Editorials for the problems of Codechef and Codeforces!(beginners and intermediates)

I and my TEAM have taken an initiative to write editorials which are pretty easy to understand even for beginners.I write them in the easiest manner possible and explain the solution from scratch so that even a beginner can understand thoroughly!

I even provide extra links at the end of my editorial(s)/solution(s) to learn the concept(S) involved.

And I even try to explain things clearly in detail with images! Feedback will be welcomed!:) :D

I write editorials in my Quora Blog:-

1) https://www.quora.com/profile/Karan-Gujar-32/Codeforces-Solutions/Codeforces-Educational-Round-55-solution-to-problem-No-1-Vasya-and-Book

2) https://www.quora.com/profile/Karan-Gujar-32/Codechef-Long-Challenge-Solutions/Solution-to-Long-Challenge-Nov-2k18-1st-Codechef-Problem

asked 30 Nov '18, 16:32

karangreat234's gravatar image

3★karangreat234
747
accept rate: 0%

edited 30 Nov '18, 18:00

I see no links.

(30 Nov '18, 16:36) vijju123 ♦♦4★

they are now there!

(30 Nov '18, 16:41) karangreat2343★

To check whether "‘x’ and ‘y’ are 2 terms of an Arithmetic Progression" you need only check if $(x-y)$ is divisible by $d$.

(30 Nov '18, 23:40) meooow ♦6★

THATs just the same thing :D, but further in the problem,there is a need to use that formula, especially when we have to calculate, how many turn(s) will it take to reach the end/starting page.And, I guess formula gives the 'real' feel. Though, thanks for pointing out :) Btw,your suggestion is great, it helps us in avoiding the use of 'double' :)

(01 Dec '18, 09:22) karangreat2343★

Double should be avoided as much as you can, else you'll pay a big deal at least in Codeforces contests.

Also, you dont even need to calculate turns. Just output yes. The editorial should, in my opinion, further discuss why answer is always yes and what this all means in a relative perspective. But its still a good attempt.

(01 Dec '18, 13:44) vijju123 ♦♦4★

Thanks for the feedback! :)

But, I did not get you.

You said-->'answer is always one'.

The answer is not always one!! It can be any positive integer!!! AND WE HAVE TO OUTPUT '-1' if answer does not exist. Thanks again, we will improve :)

(01 Dec '18, 18:34) karangreat2343★

@vijju123 is talking about Chef and Difficult Contests's editorial , I think

(01 Dec '18, 18:54) admin55★

Yeah, I thought he is calculating turns needed in "Chef and Difficult Contest".

(01 Dec '18, 20:50) vijju123 ♦♦4★

And even then, the 'double' thing was relevant at both the places :D :)

(01 Dec '18, 21:02) karangreat2343★
showing 5 of 9 show all
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:

×15,482
×2,321
×655

question asked: 30 Nov '18, 16:32

question was seen: 409 times

last updated: 01 Dec '18, 21:02