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

What are the problems to be completed in the practice sessions so as to be...

Is it the easy session/medium/expert session in the practice to compete?

View Article


sigxfsz error???

can anybody tell me why i am getting this error??

View Article


maximum limit of unsigned long long

guys,a little help here,when i assign a value to the unsigned long long ,the compiler shows ,integer constant is too large for long type..but the strange thing is if i enter the same value using...

View Article

DIJSKTRA IMPLEMENTATION USING PRIORITY QUEUE IN C..???

anyone can plzz provide the code as i am unable to figure out,how to implement the queue part??? so that it takes O(lgn) time for insrtion and deletion???

View Article

LOLCODE Error :(

Here is a simple code:HAI 1.3 CAN HAS STDIO? I HAS A VAR VAR IS NOW A NUMBR GIMMEH VAR I HAS A B ITS PRODUKT OF 4 AN VAR I HAS A C ITS SUM OF 1 AN B VISIBLE C KTHXBYE I'm getting the error, 6: expected...

View Article


DIJSKTRA IMPLEMENTATION USING PRIORITY QUEUE IN C..???

anyone can plzz provide the code as i am unable to figure out,how to implement the queue part??? so that it takes O(lgn) time for insrtion and deletion???

View Article

prims questions???

plz provide me with the prims algorithm questions???

View Article

SPOONS - Editorial

Problem Link:PracticeContestDifficulty:easy-mediumPre-requisites:Sperner's TheoremProblem:Given an integer N, find the size of smallest set S such that there exists an antichain of size N among the...

View Article


What are the "must known" algorithms for online programming contests?

Hello all, I've been practicing at Codechef for a while and now I'm gradually moving toward medium/hard problems. However many algorithms at these levels are very difficult to predict, and I was always...

View Article


CAOS2 - Editorial

Problem Link:PracticeContestDifficulty:SimplePre-requisites:NoneProblem:Given a matrix whose each entry is either '^' or '#', find the sum of weights of all CPCs. A cell is CPC if it is filled with...

View Article

Logic for " Ambiguous Permutations "

For the problem Ambiguous Permutations I read in one of the posted solutions the following piece of code which executes very fast :boolean check=true; int loc=0; for(int i=0;i<array.length;i++){...

View Article

Changes from October Contest .

Hey , @admins : Sorry ! But I could not resist the temptation to share this with fellow code cheffers . Being on the list of chefs for the "LUNCH TIME" contest that Code Chef organises , I have come to...

View Article

problem ATM Wrong answer

#include<iostream> #include<stdio.h> using namespace std; int main() { int amt; float bal; cin>>amt>>bal; if(amt%5==0&&amt<bal) { bal=bal-amt-0.50; }...

View Article


WA in C, accepted in C++, same code

Riddle: The following code results in WA when compiled as C and gets "Accepted" when compiled as C++: http://www.codechef.com/viewsolution/2684428 Why is that? #include <stdio.h> #include...

View Article

INTEG - Editorial

Problem Link:PracticeContestDifficulty:SimplePre-requisites:NoneProblem:Given a list of N integers A[1], A[2], ... A[N], and an integer X, find the minimum cost of making all elements non-negative....

View Article


Error in code for generating prime numbers upto 10^5

Code : clickSince there are 9592 prime numbers between 1 to n , I have declared an array a having 9592 elements. We know that 2 and 3 are primes so I have stored them in the array directly. Starting...

View Article

WA for TSORT

I am trying to solve TSORT by making use of inbuilt function qsort in C. this is my solution. The solution gives the right answer even with the number to be sorted as large as 10^7 on my machine. What...

View Article


Help the Integer

Hi, I am getting wrong answer in the follwing question:-http://www.codechef.com/SEPT13/problems/INTEGI am not getting which test case I am missing ,Kindly help me #include<iostream>...

View Article

Some thoughts about SEP13 and my frustration

Hello @all,Now that SEP13 has come to an end, I guess I would like to share some thoughts about it and comment a bit about what I felt of the contest and also about some of the pre-requisites some...

View Article

WA in DELISH

I am trying DELISH problem. This is my solution. I had already spent 3 days in understanding the editorial and then coded on my own, but it is always WA. I am unable to understand what is wrong with my...

View Article
Browsing all 40121 articles
Browse latest View live


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