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


February Long challenge div2 is like math exam :/


First of all , I want to say thankyou to problem setters .Those problems remind my higher schooling math. Another one , codechef long challenge division 2 becoming math exam because most of the questions are math related and a formula we need to derive. Instead of giving these type of questions just give some good algorithm based questions so that we can learn them and compete with good programmers :) If you agree just give me upvote :)

asked 13 Feb, 17:59

goutam88's gravatar image

accept rate: 0%

edited 13 Feb, 18:33

vijju123's gravatar image

5★vijju123 ♦♦



(13 Feb, 18:03) l_returns5★

+1 ... ....

(13 Feb, 18:14) karangreat2345★

Totally agree with this.Problem clearly was 3rd & 4th questions.They were just too easy.Just making problem statement long doesn't mean you increase difficulty.That's clearly evident from number of submissions too.I believe 5th & 6th should have been 3rd & 4th.Both Art of Balance & Manhattan were really good questions.Can't upvote because don't have enough reputation points


answered 13 Feb, 18:19

roha2's gravatar image

accept rate: 20%

edited 14 Feb, 00:19


" Just making problem statement long doesn't mean you increase difficulty. " - lol

(14 Feb, 21:42) black_truce5★

@black_truce - It actually does if we just make the English incomprehensible and make the statement contradict itself every new paragraph or forget to give the crucial details reducing statement to a small 5 paragraph story. ;)

(15 Feb, 21:52) vijju123 ♦♦5★

@dolabmoon Ping :P

(15 Feb, 21:58) aryanc4035★

Problem solving and Coding is all about math. If you good at math you easily derive a new equation's for new problems, BTW this long challenge not a lunchtime or cookoff where you find a problems where pre-defined algorithms fit's.

Long challenge it's a place where you can take a time and create your own algorithm using math and finally you solve a problem.

I really enjoy this LONG CHALLENGE, really it refresh all the fundamentals of GEMEOTRY,PROBABILITY and BASIC MATH's.

A very well thanks to setter's.


answered 13 Feb, 18:31

mann2108's gravatar image

accept rate: 100%

edited 13 Feb, 20:58

Yes ofcourse we enjoyed a lot but my question is just put some questions related to algorithms where previous long challenges had atleast 3 algo based questions for division 2 so that people learn new concepts.i don't think these contest have such problems it just remind us geometry and probability not new algorithms and programming is all about math but we need to take care of computer fundamentals like data structures and algorithms also those are very important too

(13 Feb, 19:29) goutam883★

I observe one thing that every long challenge belongs to some common concept, this time it's math turn maybe.

(13 Feb, 19:57) mann21083★

Problem solving and Coding is all about math
It shouldn't be only math otherwise its not a programming question in the first place... Yes,it can include maths..

(13 Feb, 20:25) l_returns5★

I'll tell you one thing. Many people get stuck in these problems as well. It's good that these problems are set so that you can brush up your higher mathematical skills and remain updated. Overall a good contest.


answered 13 Feb, 19:40

malcolm_123ssj's gravatar image

accept rate: 20%

Well you have plenty of platforms for improving maths skills... codechef is competitive programming platform...
Why don't you try maths there ?

(13 Feb, 20:22) l_returns5★

I would have understood if there were like two three problems of maths... but this time all 7 were mostly so simple... without DSA..

(13 Feb, 20:23) l_returns5★

You mean to say adhoc problems are not useful and one should directly jump into data structures and algorithms? Plus you are in Div1. Weren't you guys given questions related to Graph with DP? I don't see a reason why you must be complaining about Div2. I'm happy that such problems were given in Div2.

(15 Feb, 21:33) malcolm_123ssj3★

competitive should improve programming skills but
just printing a line or $sum-n+1$ is not programming.
There isn't any use of computer program here in such questions... they are just puzzles... imo competitive programming platform should have question which includes these things
I am complaining because I have to solve last 4 problems of div2 also as I am in div1

(15 Feb, 22:11) l_returns5★

Well most of the questions were just math.Please try to add one question on DP also.


answered 13 Feb, 19:47

yaminote's gravatar image

accept rate: 3%

lol... next two were DP only(practice question for div2)... you should have tried them.. I was stuck there since first day of long challenge...

(13 Feb, 20:21) l_returns5★

I ll have a look but problems in long challenge before January were really amazing. we had problems like HMAPPY,INTXOR,GMEDIAN and many more they included mathematicsleft. too but were way better. Maybe some of the problem setters

(13 Feb, 21:15) yaminote4★

Not saying that questions this time were not good. They were also good but the easiest problem in DIV1 could be replaced with something better.

(13 Feb, 21:19) yaminote4★

this time contest was very easy imo...

(13 Feb, 21:57) l_returns5★

I agree that some problems could have been algorithmic, like DPs and Segment Trees, or some graph theory. I really enjoyed solving 'Art of Balance' and 'Guess it Right'. It's rightly said that before the division, there was a lot more to learn from Long.

I believe 4 cakewalk problems were too many, and if users really want to improve, they should solve something they haven't solved beore. Overall, it was good contest in my opinion, but easy.


answered 15 Feb, 09:28

epsilonalpha's gravatar image

accept rate: 25%

edited 15 Feb, 09:49

Well, true ! There was more to learn before the division !

(17 Feb, 00:30) harendrasingh3★

Don't you people think Programming is an art of mathematics, sometimes pure math related problems are also important. Honestly speaking, for those like me solving even 4 questions in long challenge was really a challenge. But this time after solving 6 questions i really got good confidence for future problems also. Now i'll look forward to solve most of them.

This answer is marked "community wiki".

answered 17 Feb, 21:11

puspraj_india's gravatar image

accept rate: 100%

Hey @goutam88 , mathematics is undeniably a part of coding. Algorithms, think about Divide and Conquer and there comes master's theorem. Even for dp problems you have to build recursive solution first, bit manipulation is also about maths. I found this long challenge quite decent, maybe it was not suitable for some. And yes it contained DP, Tree and Graph theory problems too. So the moral of the story is that one should try and learn maths when scoring AC is this much easy and yes, codechef problem setters can also be a bit more variant....

There awaits next LONG challenge


answered 13 Feb, 22:17

gaurav_iiitian's gravatar image

accept rate: 8%

Yes ofcourse programming is all about math but not in this way like formula based this will lead lot of people do cheating ...yeah we need problems related bit manipulation and some algo questions atleast 2 or 3 in division 2 guys so that they can try algos rather than math

(13 Feb, 22:33) goutam883★

Yeah agree, but all the other contests have those type of questions, this contest was a good refresher of the maths we had learnt in school ! And it took me time to think so I think it was something that needed to be revisited.

Manhattan Rectangle was a good question.


answered 13 Feb, 23:06

harendrasingh's gravatar image

accept rate: 12%

Now-a-days Div2 has become more of thinking based while Div1 has some good algorithmic and implementation questions. So in Div2 only thinking and some maths is required to solve all the problems. Same happened in previous contest also.


answered 14 Feb, 01:20

vichitr's gravatar image

accept rate: 11%

Please add some algorithm question,algorithm question will surely helpful for the campus placement perspective.Totally agree but can't upvote because i don't have enough reputation points.


answered 14 Feb, 14:19

yogesh08011998's gravatar image

accept rate: 100%

yes! of course
I think these questions are going to improve your Aptitude/mental ability but not much for your programming means i am not saying that math based question should not be given but there should be balance among data structure, Algorithms , Dynamic Programming and some thing like that.

There are some question which are totally math base means if you know the concept of Array and loop you can easily solve these questions so what about programming is this the right place for these question or not. thanks to all.

unable to vote because of reputation.

This answer is marked "community wiki".

answered 14 Feb, 15:56

sunbhanu's gravatar image

accept rate: 50%

edited 14 Feb, 15:57

Totally agree... Not Saying That these type of questions should be removed completely but instead of most of the questions being based on math, it should have some algo or some other type of problems. Like i personally really liked the Art of Balance Question that was asked this time. Took me alot of time to solve that.


answered 13 Feb, 20:14

lonewolf_kj's gravatar image

accept rate: 25%

Good brush up on middle school maths


answered 13 Feb, 22:31

schiebermc's gravatar image

accept rate: 25%

First four problems of DIV II were cakewalk.
Common CodeChef, your were far better in 2018.


answered 14 Feb, 10:51

nuttela's gravatar image

accept rate: 14%

Previously there use to be Long challenges where we have to put too much of our time to solve those questions for example JULY18B and JUNE18B and there was alot to learn from those challenges but now we can easily solve 4 to 5 on day1 itself Please make challenges such that there is alot of learning . we couldn't solve 4 to 5 questions on day1 in challenges like JULY18B and JUNE18B but now many can solve 4 to 5 questions in one day itself so Please make contest like that of JULY18B .

Thank you.


answered 14 Feb, 15:14

sameer331's gravatar image

accept rate: 100%

edited 14 Feb, 15:17

can anyone explain how to solve last two problems of this contest. ARTBALAN


answered 18 Feb, 18:28

sravani1112's gravatar image

accept rate: 0%

Don't like math exams((Math exams are complicated usually!


answered 19 Feb, 17:15

marysil123's gravatar image

accept rate: 0%

yup !!! it's my first participation in long challenges on codechef FEB19 increased my confidence (DIV2) Most of the problems are linked with math


answered 24 Feb, 21:21

ubc_123's gravatar image

accept rate: 0%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 13 Feb, 17:59

question was seen: 8,916 times

last updated: 24 Feb, 21:21