Problem with JULKA
I don't know why my solution is wrong for a SPOJ problem the problem name is JULKA.Problem link is this. link text#include <algorithm> #include <bitset> #include <cassert> #include...
View ArticleHelp with segment trees - query processing
Hello all,I am now attempting to solve the problem FLIPCOIN in the practice section, medium difficulty level.I am aware that a naive solution gets TLE... However, I also know that some sort of segment...
View ArticleHelp me understand this dp problem !
I am new to dynamic programming. I can't figure out how the solution given to this problem works, please explain how the answer given works. I'd also appreciate links to various resources to learn dp,...
View ArticleBigInteger Arithmetic
Performing arithmetic operations on BigInteger/BigDecimal tends to slow down drastically as the value increasesThe alternative to using BigInteger/BigDecimal arithmetic comes down to using string type...
View ArticleWill there be practice problems available before Lunch Time June 2013?
From the contest page:This is an IOI style contest. This means that the problems will be partially graded. You will get score for passing certain test data. The details of the failed test cases will...
View ArticleEditorials On Codechef
@admin Can any user write editorial for the problems used in long and short contest or only authorised users have rights to do that.... ??
View Articledon't get logic to dis spoj problem
www.spoj.com/problems/ADV04L/ here is d link of spoj problm I don't know how to solve it and how to deal with large FIBNACCI numbers Help PlzThank You
View ArticleVolunteership for Codechef for School
Hey @everyone, I was surfing Codechef for schools and suddenly I came across this page http://www.codechef.com/school/volunteer which asked of becoming the Volunteer and after reading whole document a...
View Article1 problem 2 solutions
This is in reference to the problem FACTORIAL (Problem code FCTRL) link FactorialOne of solution got accepted:import java.io.*; import java.util.*; public class Main { public static void main(String []...
View ArticleNEXT PALINDROME
please tell me the test case for which i am getting a wrong answer.http://www.codechef.com/viewsolution/2298931
View ArticleDELISH - Editorial
Problem Link:PracticeContestDifficulty:SimplePre-requisites:Dynamic ProgrammingProblem:Given an array D[1...N], find max(abs((D[i] + ... + D[j]) - (D[k] + ... D[l])) : 1<= i <= j < k <= l...
View ArticleJune lunch time 2013 -ratings effect
The code chef team has said that we can participate in lunch contests but will it affect our short contest ratings or will it have a new rating system?
View ArticleTowers of Hanoi(Facebook Sample problem)
This is the Towers of Hanoi problem in which you've to find the minimum number of moves required to move from one configuration to another.(Not the classical.Thats easy).I've been stranded on this for...
View Articlenzec error in python.
hey! This is the code for the trianglesum problem. I'm getting an nzec error. I though it is due to some extra spaces problem. But even after using split() it doesn't work. I've checked the forum but...
View ArticleTime Limit Exceeds - TASTR
Hello, I am pretty new to code chef, and had tried my first program over here. I just tried out this question: http://www.codechef.com/problems/TASTRhmm.. as per the the explanation of the question,...
View Articletime complexity ..in int and long (java)..plz help
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.IOException; import java.io.InputStreamReader; import java.io.OutputStreamWriter; import java.io.PrintWriter; import...
View ArticleNICEQUAD - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONTo detect whether the quadrangle has an integer area we will use the Pick theorem which states that the area of a grid polygon can be calculated in...
View ArticleIs strrev() function not available in standard gcc compiler
I'm using Dev-cpp running on Windows Platform which shows no error and works fine with the strrev() function but when i run my program here, it gives compile time error with the following message...
View ArticleATTIC- WRONG ANSWER
what is wrong in dis code??#include<stdio.h> #include<string.h> const int MAX=1000001; int count(char[],int*); int main() { int t,days,c,i,k; char p[MAX]; scanf("%d",&t); while(t--) {...
View Articlefacebook programming challenge balances and weights
This is facebook programming challenge question: balances and weights You have a room-full of balances and weights. Each balance weighs ten pounds and is considered perfectly balanced when the sum of...
View Article