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

Does CodeChef have any Code Of Conduct?

I am new to CodeChef. I am not sure what can be considered as an improper conduct on this website. I do not want to be penalized for doing something unknowingly which is not the accepted behavior. Is...

View Article


Ratings of people who cheated increased

This is to bring to your notice that all users whose solutions were same in Kamehameha question of October Long Challenge have had their rating increased. This is unjustified and unfair.An earlier post...

View Article


Chrome Extension for adding CodeChef problems to to-do list

I (along with @sparshgunner12 and @mainak22793 ) had earlier developed a Chrome extension called "CodeLater", which can be used as a to-do list for CodeChef problems. It adds a "CodeLater" button to...

View Article

How to check compile time?

HelloIs there a way (I know there must be one, only I'm not aware) to check the program memory, compile time and call stack in Code::Blocks with MinGW 4.7.2?Thanks

View Article

getting WA for HELLO

question linkmy solution please give me a test case where my code fails

View Article


Getting WA with HELPLIRA

I have tried several times and yet I am getting WA in the problem HELPLIRA.MY LATEST SUBMISSION:http://www.codechef.com/viewsolution/3255224Could someone kindly point out my mistake.Thanks in advance :)

View Article

run time error..

how to minimize runtime error???

View Article

Getting wrong ans in HELPLIRA ?

http://www.codechef.com/viewsolution/3150194 Please tell me which case or point am I missing.

View Article


LASTDIG - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis problem can be solved using dynamic programming, however a more sophisticated solution exists. Denote C(N) as the sum of D(N) over all values...

View Article


Wa for Magic trick

Seeing a bit of cold response on the editorial page i am posting this as a question.Problem:::Magic trickHere's my EDIT: code and its giving a WA and i am unable to figure it out why... Please help...

View Article

A3 - The Guessing Game?

does anyone have any DEEPER notion about A3 - The Guessing Game: http://www.codechef.com/problems/A3 approach? thanx beforehand.

View Article

SPCANDY - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYCAKEWALKPREREQUISITESSimple MathPROBLEMYou wish to equally distribute N candies among M people, using the following algorithmnCandies = 0 candies-with-each-person...

View Article

wchar_t explaination

can anybody explain the use of wchar_t type and what is its real purpose..thanks!

View Article


subset sum

Given a set of n numbers ai sum up to M, and any K ≤ M, whether there is a subset of the numbers such that they sum up to (hit)??can any one plz explain this code??? and what r the changes required to...

View Article

Fast Multiplication - explanation

I will try to explain the working of the fast multiplication function in brief.If we want to do an operation like 10^18 * 10^18 % MOD, where MOD is also of the order of 10^18, direct multiplication...

View Article


ATM need help

#include < stdio.h > void main () { int w; float b; scanf("%d %f",&w,&b); if ((w%5==0)&&((b-0.5)>w)) printf("%.2f",(b-0.5-w)); else printf("%.2f",b); } whats wrong in this?

View Article

getting sigsegv error LEBOMBS

i'm getting sigsegv error(runtime error) i checked the guidelines .to my knowledge i followed them.please help in finding the error .thanks in advance.question linkmy solution

View Article


LUCKY5 - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONIn this problem the only thing you should notice is that the only operation that you need to use is the changing of digits.Indeed, adding leading...

View Article

Binary tree structure in this case.

Imagine a binary tree lying on the floor with nodes as balls and edges as threads, you are given a pointer to a node. When you pick the tree from that node up what will be the structure of the tree....

View Article

Fastest read / write in java

I am using simple bufferreader but it is slow enough and due to this in some program i got time limit exceed problem . So guys tell me about fastest read and write code for java program.

View Article
Browsing all 40121 articles
Browse latest View live