Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 40121 articles
Browse latest View live
↧

how to know when to apply Binary indexed Tree??

Had been studying BIT past few days and have got the idea how does it work but unable to figure when it is used like how to know it is being used in http://www.spoj.com/problems/CTRICK/ and...

View Article


Help with the code of "help ram" problem code- aba14a

this is my C code which i wrote,but it is generating wrong answer error..can anyone please help me with any special case m missing:???????code:- include<stdio.h> include<math.h> long long...

View Article


heavy-light implementation

I am not able to solve many questions relating to heavy light decomposition of tree,So please help me to understand the concept any links please to thoroughly understand HLD of the tree :) Thanx in...

View Article

Cheating Cases, Revisited February 14

Its really disgusting.Admin its high time for tough measures, cheaters cheat doesnt matter its long, cookoff or lunchtime.I think these users have developed their skills so as to cheat in 3 hr...

View Article

SUMTRAIN-Getting runtime error

I have been working on the SUMTRAIN problem. I used the approach mentioned here. Following is the code that I have come up with.#include<bits/stdc++.h> using namespace std; int main() { int...

View Article


Requesting new feature

As codechef is platform to learn and practice, It would be very helpful if codechef can show on which test case our solution fails during contest. As it would be very helpful to know the silly mistake...

View Article

Help me with the code of problem "Help Ram"

this is my C code which i wrote,but it is generating wrong answer error..can anyone please help me with any special case m missing:???????code:- #include<stdio.h> #include<math.h> long long...

View Article

Image may be NSFW.
Clik here to view.

Technex'14 and FireEye, Inc. present Matheletics

Matheletics is a mathematical contest (inspired from PROJECT EULER) where a sound knowledge of mathematics together with computational thinking will be essential to solve problems. The motivation...

View Article


Life,the universe, and everything

The link to the question is here- http://www.codechef.com/problems/TESTSo I have checked out he successful submissions and what they do is that they print the number right after its been scanned and...

View Article


ALEXNUMB getting wrong answer

what is the difference between (long long)(n * (n-1))and (long long)n * (n-1)/2.. in the latter one i am getting correct answer whereas in the first one it is showing wrong answer.

View Article

Serial Port programming Code

Construct a working C++ program in either Dev-C developer for implementing a serial port programming code. You need to access the data coming in the serial port (USB port) via Arduino, to your...

View Article

Can we have more short contest

It will be more wonderful if codechef organize one short contest in every week. And provide Titles to programmers like TC and CF.

View Article

How could we solve this scenario ?

We have one application which is hosted on 4 different server if support the one web server is down that time what will going to be happen for the user who is going to do transaction on that particular...

View Article


Help ram @ABACUS .... can anyone check which case i m missing ??

include<stdio.h>include<math.h>int checkprime(long long x) { long long j,flag=0; for(j=2;j<=sqrt(x);j++) { if(x%j==0) { flag=-1; break ; } } return flag ; }long long divisor(long long i)...

View Article

Suggest new features/updates for Codechef Ranking site

Hello most of you might be knowing about Codechef Ranking site : http://www.okrdx.com/DescriptionPluginFrom time to time the back-end and plugin was updated to suit the purpose of promoting...

View Article


Interesting observation

I just noted that the top 2 guys in Indian ranking have the exact same long contest rating points, ranking and rating graphs. Coincidence...

View Article

Walk - Editorial

PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:ProgrammingPROBLEM:Given a sequence of numbers W[0..N-1], find out a...

View Article


how can I read any function given by user

Actually I need such a program in c, where, in the input screen if I give the function, and any point where I need the functional value , the program identify the function and gives me the functional...

View Article

Rejudge notifications by email .

@admin , @all : I would like to see CodeChef bring in "Rejudge notifications by email" , possibly only if user has "opted" for such a notification in his user preferences or may be to all whose score...

View Article

Which books are good to read to inprove the coding knowledge ?

to become good coder you need to know better algorithms so you can decide by looking at the problem. please suggest me a book for algorithms and Maths knowledge.

View Article
Browsing all 40121 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>