LEBALONS - Editorial
PROBLEM LINK:PracticeContestAuthor:VitaliyTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:EASY-MEDIUM PREREQUISITES:Combinatorics, Dynamic Programming, Probability PROBLEM:Given N ballons, i'th...
View ArticleCOUNTREL - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONPart 1 closed form: (3^n+1)/2 - 2^nPart 2 closed form: 2*4^(n-1) - 3^n + 2^(n-1) + 2^n - (3^n+1)/2 The answer (for both 1 and 2) is in the form of a...
View ArticleHOLES - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATION You just simply need to do what is mentioned in problem statement. Just note that only letter “B” has two holes, and only letters “A”, “D”, “O”,...
View ArticleDP in LEBALONS
I cross chekked it with the tester's solution on some test cases.Can somebody tell me why is it a WA.What is wrong in the DP for this question.http://www.codechef.com/viewsolution/3973475
View ArticleChef and Segments
I have used the idea of fenwick trees to solve this problem. ans=tree[r]/tree[l-1]; I am getting wrong answer.Please help!!Thanks in advance.problem-http://www.codechef.com/problems/CHMOD my solutin...
View Articlelink for live rankings
just little left for june long challenge, and then follows short one. live rankings for June 2014 long challenge: http://www.codechef.com/rankings/june14live rankings for June 2014 short challenge:...
View ArticleAMSGAME1 - Editorial
Problem Link:PracticeContestDifficulty:CAKEWALKPre-requisites:gcdProblem:You are given a set of N positive numbers A[0], A[1], ..., A[N-1]. At each step you pick two unequal numbers and replace the...
View ArticleNAME2: RUNTIME ERROR,PLZ HELP!!
I am getting runtime error in this code , but it is working fine on my machine. Please help!!!The link to problem is -http://www.codechef.com/problems/NAME2.include <iostream>include...
View ArticleCompiler and Parsers
Why my code says WA i cannot get. Please Helpimport java.io.*; class Compiler { static String a[]; static int pos; public static void main(String args[])throws Exception { BufferedReader br=new...
View ArticleNo Mail regarding Top 20 for May 14 Long Challenge
I scored a rank of 17 in May long challenge. My other friends who scored ranks in top 20 have received mail for ending up in Top 20. I haven't received mail till yet. Can anyone tell me why.
View ArticleTROOT - Editorial
The solutions provided are both wrong for this example 5 4 1 2 2 3 2 4 4 5 + 1 3 + 3 5 - 1 3 - 3 5 Answers should be 3 3 15 60.
View ArticleExplain the output of these C codes
#include <stdio.h> int main () { int i = 4; int x = ++i + ++i + ++i; printf ("%d", x); return 0; }Output : 19#include <stdio.h> int main () { int i = 0; while (i++ <= 10); printf ("%d",...
View Articleproblems/TWODOGS/why am i getting wrong answer
link text questionlink text my answeri am getting correct ans for all the test cases which i have tried . can someone point me what is wrong in my code
View ArticleDecrease string
#include<stdio.h> int main() { unsigned int t,inp; scanf("%u",&t); while(t--) { unsigned int temp; scanf("%u",&inp); temp = inp?1+(inp/26):0; inp=inp+temp; while(inp--) {...
View ArticleAndroid Programmin
Can anyone recommend any good online free tutorial for android programming
View ArticleFacebook application
It is necesary to have a webspace to build a facebook application for any platform.?
View ArticleSmall factorial NZEC in java
Hi Please find below my code. I have run it in java 1.6. The output is absolutely right i cross verified for many digits. but i get nzec runtime error. i even handled exceptions. what is going wrong?...
View ArticleLanguage runtime specification
I'm looking for the page of runtime specification on languages, by that I mean where it is specified which language is multiplied by what factor for a given time limit of a problem. I saw it somewhere...
View Articledigjump problem
Hi, I've done the digjump problem and my code is working on given testcases but when I submitted the code it says wrong answer.I'm not getting why it is.Please help.Thanks
View ArticleRun time error with Python
Hi, I am trying to sumbit my code in Python and a run time error is thrown most of the time. I am using Python 2.7.3 on my PC and same codes run correctly for all given inputs.What's wrong ?
View Article