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

Java program number to english conversion

Write a program to print amount in English.i want optimum solutionInput : Any number up to 1 millionOutput: Pronunciation of the input number in EnglishExample Inputs and OutputsInput : 12345 Output :...

View Article


[Closed] Repeated.

Merge sort repeated Query.

View Article


CIELNUM2 - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis problem is the easiest problem in the set. We take the price for each menu, and check whether it is a Ciel number naively. For example, we can...

View Article

AMSEQT - Editorial

Problem Link:PracticeContestDifficulty:EasyPre-requisites:Binary Indexed Tree, Ad-hocProblem:You are given a sequence of N positive integers in the range 0 to 2M-1, say A[0], A[1], ..., A[N-1]. In how...

View Article

WITMATH - Editorial

PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESPrimality TestingPROBLEMGiven some N, find the i for which φ(i)/i is the largest among all 2≤i≤N.φ(i) is the Euler Totient Function.QUICK...

View Article


Fast I/O (Discussion)

I don't understand what's going on in here in this functions.. i have seen it may times. int readint() { int cc = getc(stdin); for (;cc < '0' || cc > '9';) cc = getc(stdin); int ret = 0; for (;cc...

View Article

merge sort: looping variables test condition

there is a for loop at the end of the function merge() wherin i<=num_elements is used. why is it <= and not just i< num_elements#include<stdio.h> void m_sort(int numbers[], int temp[],...

View Article

Why no Partial Grading in Contest Problems ? (Discussion)

I have found a partial grading for the contests in some other on line programming sites.I think it is Hacker Rank.I am not sure.At least a 10%of the total points i.e 0.1 point for the submission if the...

View Article


wrong approach

http://www.codechef.com/problems/NUMGAME in this problem if n is even then alice will win and else bob,this is the correct ans for it, but according to me it should not be the answer, example if n=5...

View Article


runtime error

#include <stdio.h> #include<math.h> #include<string.h> int getLength(long int a) { int length=0; while(a>0) { a=a/10; length++; } return length; } int main() { int ar[20][2]; int...

View Article

Help out with the code

I have checked my solution with many inputs but its giving wrong answer please help out with the code http://www.codechef.com/viewsolution/2181785.

View Article

"APPROXIMATION"-This is my first problem in Codechef .How to work it out?

link textthis is my first problem in codechef??Is this the way to start for ICPC?? I am very weak in programming.Can i solve the questions in codechef??

View Article

Execution Time Info!

How to know the execution time of my program ?

View Article


Suggest new features you think should be added to CodeChef ?

I know have improved a lot by this codechef...its really awesome. But i would like to tell to the admin that codechef should improve a bit more, imean should add some more features....Such as message...

View Article

OBST explanation

Can ne1 pls explain the Dynamic approach of Optimal Binary Search Tree(OBST)..or maybe give a good link where the algorithm is explained in a systematic manner with a good example!!!

View Article


Is there prize for the monthly winners in codechef?

I have heard that there is prize given in order to encourage the upcoming programmers here in codechef for all the sections namely the long term, short term and the top contributers? But i am not sure...

View Article

Inline functions (Discussion on performance)

When I'm using inline with ModMultiply function, its giving tle else AC. Problem Link : http://www.codechef.com/problems/WITMATHAC Code without inline : http://ideone.com/hFGQPqTLE with inline :...

View Article


Why no Summer Internship Contests ?

@admin and users : Don't you guys think that there should be hiring contests or something like that on Codechef, kind of like what they had on Hacker Earth this month. I mean we do have excellent...

View Article

COINFLIP [tle]

what's error in this code.. showing too much memory(955.5M) at codechef.. here is the link.. http://ideone.com/T61ayIhttp://www.codechef.com/viewsolution/2182857

View Article

Prize in contests

Hi all! i'm new here so, just wanted 2 noe: What are prizes/prize money for different contests in Codechef?

View Article
Browsing all 39796 articles
Browse latest View live


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