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

Life, the Universe, and Everything

What is the probem with the following code, somebody please explain. May be I am missing some test case!#include< stdio.h > #include< stdlib.h > int main() { int n,i=0,arr[] =...

View Article


plz help!!!MY CODE IS WRONG IDONT KNOW HOW!!

Bytelandian gold coinsinclude<stdio.h>include<conio.h>int main() { int i,j,k,l,n[10],a,t; scanf("%d\n",&t); for(a=0;a<t;a++) { scanf("%d",&i); if(i<12) { printf("\n%d",i); }...

View Article


Image may be NSFW.
Clik here to view.

KGP13B - Editorial

PROBLEM LINK:PracticeContestEditorialist:Jingbo ShangDIFFICULTY:EasyPREREQUISITES:sortPROBLEM:Given at most K*M intervals [Li, Ri], find the thickest point. That is, for all points x, the most number...

View Article

KGP13A - Editorial

PROBLEM LINK:PracticeContestEditorialist:Jingbo ShangDIFFICULTY:EasyPREREQUISITES:Tree, Enumeration, BFS, DFS, Floyd-WarshallPROBLEM:Given a K-node tree, define the cost of a path is the maximum...

View Article

KGP13C - Editorial

PROBLEM LINK:PracticeContestEditorialist:Jingbo ShangDIFFICULTY:Easy-MediumPREREQUISITES:Dynamic ProgrammingPROBLEM:Given a K-steps stair, try to merge some adjacent steps to get M-steps remained such...

View Article


Why are my getting the wrong answer?

I don't know why I'm getting a wrong answer for "The Morning Commute". It works on all of the examples they provided. Please help me!The Problem: http://www.codechef.com/problems/COMMUTEMy Code:include...

View Article

TEST CASES

how can i initialise arrays of size that is to be entered by the user i.e. the number of test cases. In several questions i need to store the information in this array for different test cases.

View Article

GERALD05 - Editorial

PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dynamic Programming, CombinatoricsPROBLEM:Given a lot of objects,...

View Article


a error in java program,plz tell me error/

class a { public static void main ( String args[] ) { char[] combos = new char[args[0].length()]; findCombos ( args[0], new String(combos), 0 ); } private static void findCombos( String str, String...

View Article


DECORATE - Editorial

Given a string S, the problem first requires you to compute the set of all unique palindromes of the string. This is part one of the problem. For example, given the string "abab", the set of all unique...

View Article

Question - Marbles. Why does it show wrong answer? Answer is simply (n-1)C(k-1).

Link to the question - http://www.codechef.com/problems/MARBLES#include<iostream> #include <algorithm> using namespace std; int main() { int i, T; long int j, n, k, lnMin; long long int...

View Article

Infinitr Grid game,solution not giving correct resutl,please help

here is the link to question http://www.codechef.com/problems/IGAMEhere is my code#include<iostream> #include<string> using namespace std; int main() { short T=0,m=0,n=0; short...

View Article

How to declare multiple input statement in a single line in java ???

How to declare multiple input statement in a single line in java????example:taking input of three integers: 2 3 4 (taking input in a single line)taking input of three integers: 234i am talking about...

View Article


C or Cpp which is better?

i have this doubt from when i started solving codechef problems.Now i am programming in C language only.Is learning complete C language is more adequate to become a good_programmer/master in codechef...

View Article

Cheating in December Long-DECORATE

These 2 submissions seem to be identical.@admin do have a look at it. PS:Both are in the top 20 .http://www.codechef.com/viewsolution/3095229http://www.codechef.com/viewsolution/3068078

View Article


KPRIME - Editorial

PROBLEM LINKPracticeContestDIFFICULTYSIMPLEPREREQUISITESSieve of EratosthenesPROBLEMA number is called a K-prime if it has K distinct prime factors.Find the number of K-prime numbers between some given...

View Article

GORDIAN KNOT, the mathematical problem solving and computing contest by IIITH

Felicity Threads, the tenth annual edition of computing festival of IIITH is back.Presenting the first event of Threads, Gordian Knot, with intriguing problems in mathematics and computing, inspired by...

View Article


Acess Denied

Plz fix it.getting access denied :(

View Article

Access Denied

Getting access denied on problems for January challenge 2014.

View Article

You are not authorized to access this page.

Its showing the following message to me : "You are not authorized to access this page" whenever I try to see the problem statements.

View Article
Browsing all 40121 articles
Browse latest View live


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