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

last digit sum-confusion

please can anyone help me understand the editorial of the problem : last digit sumlink: http://discuss.codechef.com/questions/4079/lastdig-editorial

View Article


Global LeaderBoard page Problem

Hello, Whenever I access the page http://www.codechef.com/rankings/APRIL14 , my browser begins to use too much of memory leading to a slowdown of my pc ....eventually leading to a crash.Is this a...

View Article


Divide the Tangerine

Can anyone provide more test cases for the problem !!! I have tried various test cases

View Article

SEAPERM Scoring problem

Scoring problem, It says B/Sum must be low. This means, Sum must be large, this means (f(a,1)+f(a,2)+....f(a,k))/k must be large which contradicts the problem statement which says "(f(A, 1) + f(A, 2) +...

View Article

Divide The Tangerine

Can anyone please explain what is meant by this paragraph "Please, note that parts are not cyclic. That means that even if the tangerine division consists of only one part, but that part include more...

View Article


alternative to getche()

i want to use getche() ,but i m not able to. because it's #included in conio.h which is not allowed in code chef.. so what should i do. actually i want to scan 234568790098765430987654 digit by digit ..

View Article

DFS for maze traversal

I am just starting to learn graphs...I am trying to implement a question.This question is a common one-There is a maze and there are 2 ppl in the maze- Jack and Robot..the robot can move only in all...

View Article

Help on Fast input/output

can someone explain me what's fast input/output. I m sorta new to this stuff and would really appreciate some help. Thank you.

View Article


input function

I have seen many programmers use something as "getchar_unlocked()" function in their program in C for accepting input . Can anybody tell me what this function does and what is the advantage of using...

View Article


can 0-1 knapsack be implemented using 1D array??

I found implementation using 2D array. But how to implement it using 1D array and if it is not possible then why???

View Article

Cards, bags and coins Problem

I ma getting WA.. Can anybody tell me what will be the output if card number is '0'. Or if 2 cards have the same number?

View Article

Need help with Compilation error (Works fine with Dev C++)

Can someone kindly help me find the error ? The code is running fine in Dev C++.prog.c: In function �main�: prog.c:8:25: error: expected �)� before �x�...

View Article

Good reading source on Fread()... How does it work ?

Hey guys, I am trying to code the enormous input problem (Easy). The most efficient code in C uses a fread() call to take in the input. Can someone please explain why this method takes the least time...

View Article


storage of pow(10,10)

how can i store( in which datatype ) pow(10,10);

View Article

CNPIIM says wrong answer, but I checked it!

Usually when it says "wrong answer," I double check everything because I know something is wrong. But in this case, on my last submission I had, what I believe, to be perfect answers.I went through the...

View Article


inputting strings

when i used to read a string character by character i get an error but when i read the string as a whole by using scanf(%s") or gets i get the correct answer can anyone explain why? i have even...

View Article

question in april challenge

I am getting TLE for my submission to the problem CHEF and DIGITS in April Challenge 2014. I submitted the code many times with necessary changes but it is showing TLE in every case. PLEASE solve my...

View Article


MSTICK - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESRange Minimum Query, Simple MathPROBLEMYou are given N matchsticks arranged in a straight line, with their rearends touching each other. You are...

View Article

MIKE2 - Editorial

PROBLEM LINKSContestPracticeAuthor: Constantine SokolTester: Roman RubanenkoEditorialist: Praveen Reddy VakaDIFFICULTY:simplePREREQUISITES:Greedy AlgorithmsHINTSort the array and see if you can figure...

View Article

NZEC error

hi guys can you please tell why this python code is giving NZEC error import psyco psyco.full() def main(): l=[] n=int(input()) for i in range (0,n): temp=int(input()) l.append(temp) l.sort() for i in...

View Article
Browsing all 40121 articles
Browse latest View live