SIGSEV error in GERALD08.
This is my submission of GERALD08 http://www.codechef.com/viewsolution/3773036 , its running correct in my test cases but giving RE. Is it because my recursive dfs or something else.Can you pl tell why...
View ArticleSPREAD - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONSETTER'S SOLUTIONCan be found here.TESTER'S SOLUTIONCan be found here.
View ArticleNZEC Error : Snape Problem
In the below JAVA program I am getting NZEC error without using try catch statement, but with try catch statement it runs fine . It happens almost always . I am not able to figure out that is this...
View ArticleSEAGRP wrong answer
i am getting wrong answer for following question.Sereja has undirected graph, which consists of n vertexes and m edges. Sereja can delete edges from the graph. Now Sereja is interested in one question...
View ArticleTCP - Editorial
Problem Link:contest, practiceDifficulty: MediumPre-requisites: Interpolation, Derivatives, IntegralsProblem:We are given 4 different points of the 2D plot of some cubic polynomial function F(t) and...
View ArticleHOTEL - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONSeveral approaches exist to this problem. The simplest solution is to simply count the number of guests present at the hotel for each time from 0 to...
View ArticleGERALD08 - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:MEDIUM-HARD PREREQUISITES:Blue-Red Hackenbush DFS, Graphs PROBLEM:Given a...
View ArticleDoubt in range update and point query in Binary Indexed Tree
Hello all.Can anyone explain why this code(for range update and point query) works? When i read BIT from topcoder tutorial they said that query(x) returns array[1]+array[2]...+array[x] but here...
View ArticleDIREL - Editorial
Problem Link:contest, practiceDifficulty: EasyPre-requisites: Graphs, Shortest path problem, Ad-hocProblem:We are given N persons and R binary relations(like "Vanessa is sister of Jack"). Our task is...
View ArticleATM C++ Keep getting wrong answer
I keep getting the wrong answer and I don't know why.include <iostream>using namespace std; int main(int argc, const char * argv[]) {const float fee = 0.50; unsigned int widthdrawl = 0.00; float...
View ArticleInfinitum April 14 - HackerRank
Hi, fellow Coders.I am glad to invite you to join the amazing math contest Infinitum April'14, a monthly contest restricted to mathematics domain, held on HackerRank.Register at...
View ArticleWA in WORDS1
I got "Wrong Answer" in WORDS1 (C99 strict) but I have not idea what is wrong with it. Can anyone help me finding wrong part of my code or failing test cases? Here is my...
View ArticleTCP: Travelling Chef problem
How is this code correct http://www.codechef.com/viewsolution/3786481 ? Or it gave AC due to something wrong with the test cases or anything..
View ArticleATM: Giving NZEC in Java...Help Needed !!
Problem Link: http://www.codechef.com/problems/HS08TESTMy Solution: http://www.codechef.com/viewsolution/3787756The solution works on my laptop but shows NZEC when submitted on codechef...Any help will...
View ArticleAlien Spiral
hey can anybody explain the logic behind this http://www.codechef.com/INSOM1/problems/INSOMA1 question?
View Articlefind no occured odd no of times
hey this question from geeksfor geeks ::::: Given an array of positive integers. All numbers occur even number of times except one number which occurs odd number of times. Find the number in O(n) time...
View ArticleBUY1GET1 - Editorial
Problem Link:PracticeContestDifficulty:CAKEWALKPre-requisites:Ad-hocProblem:You are given a set of jewels of different colors that you need to purchase. Buying a jewel of color k makes you eligible to...
View ArticleGCC 4.9.0 released
One year and one month passed from the time when the last major version of the GNU Compiler Collection has been announced, so it is the time again to announce a new major GCC release, 4.9.0.All changes...
View ArticleMike and Task Packages WA in Python
Hi,I coded this solution for MIKE2:from __future__ import division def read_mapped(func=lambda x:x): return map(func, raw_input().split(" ")) def read_array(N, func): l = [] for i in xrange(N):...
View Articlebitwise operator
why sometimes bitwise operations do not work properly?(even though logically they are correct.)
View Article