NZEC in ABCPATH in SPOJ. PLEASE HELP.
I'm getting an NZEC for this particular problem http://www.spoj.com/problems/ABCPATH/My code works correctly for the test case stated in the problem though. Here is my work:...
View ArticleKPRIME - 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 ArticleBEAUTIFUL STRINGS WA help:)
http://www.codechef.com/problems/WICQ8 question link and here is my code #include<iostream> #include<string> #include<cstring> #include<cstdio> #include<cstdlib> #include...
View ArticleWhat kind of comment should I post on the problem page?
Is there any comment posting guideline? I am new on this website. I have so many doubts while I participate in a contest. Can I ask them on the problem page by posting a comment? Will I be banned for...
View ArticleMistake in the rating.
Mistake in the rating !!!!! in the graph it is showing 1403 but in the list it is 886.My rating after june 2013 was 1049 in july i did 4 solution with a lot of commitment and dedication so please admin...
View ArticleSEASOR - Editorial
PROBLEM LINKPracticeContestDIFFICULTYCHALLENGEPREREQUISITESAd-HocPROBLEMYou are given a sequence of N numbers. You have to sort them in increasing order. You have only one operation available to you,...
View ArticleIntroduction to Graphs: Definitions, Traversal, Depth-First Search
Hello @all,As I have mentioned on several posts here on forums, I am only now starting to learn graphs in a more educated, methodical and serious way, so, after I have studied DFS for few days and due...
View ArticleSolution copied from ideone
After the contest I was looking at some solutions of the challenge question in this july contest SEASOR. When I looked at one solution that had the same score as mine, I was shocked to see that it was...
View ArticleCount All Palindromic Substrings Problem
I would like to clarify about somethings about Counting all palindromic substrings in Short Contest. I know that we have to calculate the number of palindromic substrings centered at each letter. Here...
View ArticleC# : Use in codechef ?
Can C#(C sharp) will be use in doing programming ques and challenges,,?? and if yes which compilers?? pls reply.
View ArticleWhat does CodeChef do to prevent cheating?
There is rampant cheating happening in long contests. Yet CodeChef does not seem to be strict in its ways to deal with those who cheat. There has been a big delay in rating update for long challenges,...
View ArticlePaying Up : Practice question Wrong Answer..(Help please)
Hi I have the following python code snippet to solve the Paying Up problem . The tests pass as expected on my computer based on the sample input provided but when I upload the same I get a WA .Please...
View ArticleSuffix Trees
Hello guys, is there a tutorial for implementation and applications of suffix tree data-structure ?? or some paper or any link that helps you understand ?? I couldn't find much of it !, And also are...
View ArticleTAAPLUSB - Editorial
Problem Link:PracticeContestDifficulty:EasyPre-requisites:Linearity of Expectation, basic probabilityProblem:Find the expected number of carries when adding two numbers, each at most N digits...
View ArticleTACHEMIS - Editorial
Problem Link:PracticeContestDifficulty:MediumPre-requisites:Manacher’s AlgorithmProblem:Given a string in "compressed notation"(see problem), find the number of substrings that are...
View ArticleTAACUTE - Editorial
Problem Link:PracticeContestDifficulty:Easy-MediumPre-requisites:Ad HocProblem:Given N points in a plane, find the number of acute triangles formed using these points as vertices.Explanation:It is...
View Articlejava editorial please
why all the editorial are in C language ..... can anyone write the editorials in java plzz?
View ArticleWA-galactik
ufff....checked all the test cases but getting wrong ans plzz....guys help me out#include<cstdio> #include<iostream> #include<list> using namespace std; int dfs(int a);int...
View Articlewhy the hell WA for galactik,,,,checkd nearly all tst cases
include<cstdio>include<iostream>include<list>using namespace std; int dfs(int a);int mini=10005;int p=0; list<int> M[1000004]; int visited[100005]={0};int cost[100005]={0}; int...
View Articledata structure
please someone suggest me some good data structure books...so that i can implement it efficiently in the contest i want to learn more about hashing ,priorty queues and some useful data structures
View Article