CHAORNOT - Editorial
Problem Link:PracticeContestDifficulty:ChallengePre-requisites:local-searchProblem:Given a set of numbers, find a subset of maximum size that does not contain an arithmetic progression.Explanation:Let...
View ArticlePERMUTE - Editorial
Problem Link:PracticeContestDifficulty:Medium-HardPre-requisites:ad-hoc, mathProblem:Given integers N and M, find how many permutations are there from 1 to N, such that the sum of adjacent numbers does...
View ArticlePREDICT - Editorial
Problem Link:PracticeContestDifficulty:EasyPre-requisites:ProbabilityProblem:In a game between team A and team B, you are given the probability that team A will win. If you bet M rupees on team X, and...
View ArticleLAPIN - Editorial
Problem Link:PracticeContestDifficulty:CakewalkPre-requisites:ad-hocProblem:Given a string S, if we split it in the middle (if S has an odd number of characters, disregard the middle character), then...
View ArticleWA for LEMOUSE
http://www.codechef.com/viewsolution/2276396. Can any body plz tell me why its giving WA.
View Articleno. of zeros in a factorial
#include <iostream> using namespace std; int main() { long int n,sum=0; cin>>n; long int k=n; while(k>=5) { k=k/5; sum=sum+k; } cout<<sum<<endl; return 0; } Nothing wrong here??
View ArticleCode Chef API
@admin , @everyone : I wanted to develop some mobile app's for code chef ( starting with Android ) and some utilities like maybe desktop arena , statistics collector . Is it possible for Code Chef to...
View Articleusing a structure
i have completed the WSTRING problem by using a structure. That works fine on my system but gives a CTE on codechef. How can i solve this problem ???
View ArticleNZEC error in java code for problems SUMTRIAN and SPOON
Following are the two codes that ran perfectly in my ide namely eclipse and also ran in online ide: ideone.com with correct output. However codechef gives NZEC error while there is no "division by...
View ArticleWhy the ratings of june long contest haven't been updated yet?
Generally Ratings of users is updated within 1 day of the end of the contest. but this time it's being delayed... what's the reason?
View Articlenew to programming
hii am very new to c and C++ programmingi find most of the programs even in easy section tough and solutions are like alien to mewhat should i do?
View ArticleChallenges
After solving a couple of challenges in long contests I would like to say that it would be really nice to have at the beginning of the contest the problem setter/tester score for that challenge...
View ArticleEvaluation taking too much time!
@admin : Its taking around 2-5 min in evaluating a code ?
View ArticleTAKE A PICTURE
Hi everyone, I need help to create a java program to take a picture using a webcam. Thank you :)
View ArticleYandex.Algorithm 2013 in Saint Petersburg, Russia, $18000 in prizesEdit
In 2013 Yandex will host an open programming championship on the new Yandex.Contest system, with original rules, prizes, monetary awards and an exciting final round in St. Petersburg, Russia. But the...
View Articlesmall factorial
import java.util.*; import java.io.*; import java.math.BigInteger; class test { public static void main(String [] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{...
View ArticleWeak test cases for TKCONVEX.
The test cases for the problem TKCONVEX are very weak. Even though the problem was rejudged during the contest, still I am able to find many solutions which fail very simple test case.8 4 1 2 3 6 6 6 6...
View Article[closed]TAPALIN_use of MOD
please tell what is the problem in the following code.The code goes well till n=12 but gives wrong answer at n=13 as the modulo operation is not working fine.Please identify the problem :...
View Articleplease help me with this code for Sums in Triangle
#include<iostream.h> int main() { int n,s[50]={0},n1; cin>>n; n1=n; while(n) { int t,temp; int i=0,k; int sum=0; int a[50]; cin>>t; temp=t; while(t) {k=0; while(k<t) {...
View Articledynamic programming
i want to do practice on dynamic programming. Can some one provide me the link of dynamic programming problems .please give me the link of problems as much as possible....
View Article