TCP: 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 Articleinitialisation
why declaring statements like this- int a[100]={1}; sometimes work properly sometimes do not work properly ending to a great frustation??
View Articlebitwise operator
why sometimes bitwise operations do not work properly?(even though logically they are correct.)
View ArticleCOOLING problem | why am i getting wrong answer for COOLING problem?
my program is generating correct answer for the test cases and the logic is also good, but why am i getting wrong answer for my code... #include <stdio.h> int main() { int...
View ArticleKAN13B - Editorial
PROBLEM LINK:PracticeContestAuthor: Tanaeem Moosa Tester:Jingbo ShangEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dijkstra, Binary HeapPROBLEM:Given a R×C matrix and the definition of the...
View ArticleANUCBC - Editorial
PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:MEDIUM PREREQUISITES:Dynamic ProgrammingPrecomputationPROBLEM:Given N...
View ArticleMother of shamelessness
Generally, I avoid posting such things in forum. I personally report cases to admin if there are cheating cases. But I feel that these guys certainly deserve a name in hall of shame. This happened in...
View ArticleGolden Trees - SIGSEGV error
Hey I posted the following code for the Golden Trees problem for C++. It is giving me a Runtime error. Could you point out where I a might be going wrong ? newbie :)include <iostream>using...
View ArticleATM problem
Getting compilation error "Main.java:25: class MAT is public, should be declared in a file named MAT.java public class MAT ^ 1 error"..... Compiled in a different version of compiler the code works...
View ArticleRuntime error in ATM
Hi, I'trying to solve ATM problem, but getting RE - my submission.
View ArticleMSTICK - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESRange Minimum Query, Simple MathPROBLEMYou are given N matchsticks arranged in a straight line, with their rearends touching each other. You are...
View ArticlePALIN:Getting WA
i have submited the codeinclude<stdio.h>define get getchar_unlocked()//#define MAX 1000001 inline int fast_input(){ int input; char c=0; while(c<33)c=get; input=0; while(c>33){...
View ArticleMSTICK : WA
Hey I have used 2 segment trees for implementation. But still, I am getting wrong answer. Can't figure out why. Could anyone please help me out? Solution : http://www.codechef.com/viewsolution/3792862
View ArticleNZEC error
Can anyone please tell me why I am getting an NZEC error in this program?? I cant find it! http://www.codechef.com/viewsolution/2686919 ...please!!
View Article