Error in Codechef?
Hello @admin,During the contest, I had the page open with a problem I was solving and all of a sudden I got an "Access Denied" error... Can someone look into this?Best regards,Bruno
View ArticleASTRGAME - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYEASYEXPLANATIONThis game is a modification to the game of Kayles. Like other impartial games, this problem can be solved using Sprague-Grundy theorem.Let's define...
View ArticleWA in MAXDIFF
Problem link : MAXDIFFMy code : MAXDIFFCan't figure out the error. Please help.
View Articlecofounder for a start up
hi every one, i would like to have a co founder who is good in code,the aim is to start a start up at Y combinator,i am about to apply there and i would like to add one more person as a co founder and...
View Articlelogic for SNCK04
can anyone state the logic for this problem http://www.codechef.com/problems/SNCK04 m getting tle for the same..
View ArticleCAKEDOOM - Editorial
PROBLEM LINK:PracticeContestDIFFICULTY:SIMPLEPREREQUISITES:Greedy AlgorithmsPROBLEM:The problem requires you to output the lexicographically smallest possibility from the given “partial” arrangement...
View ArticlePython vs Javascript Vs. HTML5 on web
Here's a short but useful article on - Python , Javascript ,HTML5 on web-- http://bit.ly/19Ohi6Q . I hope this gonna help every coder.. :) Thanks,
View ArticleNumber of subsets
How to find number of subsets of a set containing N integers 1... N .while any of subset can not contain some of pair of integers. T : number of test cases N : input for each test case E : number of...
View ArticleC Array Size
Whats the difference between doing a malloc and this code? ...to obtain an integer array of size n. int n; scanf("%d", &n); int arr[n]; Actually I was surprised that such a feature exists as it...
View ArticleTLE - The ultimate explanation
Hello @all,This post is motivated by the excessive and overwhelming number of comments during SEP13 Long Contest about people getting TLE with 1.01 sec, while people with 10 sec or more get AC...These...
View ArticleLinked list are allowed in codechef
Is using linked list not valid on codechef ? Or the compilers don't support it ??
View ArticleSIGSEV in quicksort implementation
please help me fix the SIGSEV violation at line 5(acc to gdb) of this quicksort implementation @: http://ideone.com/i04HMG
View Articlefind the output
#include<stdio.h> #include<conio.h> void main() { int i=4,j=-1,k=0,w,x,y,z; clrscr(); w=i||j||k; x=i&&j&&k; y=i||j&&k; z=i&&j||k;...
View Articlealien chef : runtime error
my code for the problem alien chef in easy problems is giving run time error but it works fine on my machine.Could you please help me to rectify the code.i think it is related to these things 1. i have...
View Articlecoalscam WA!!!
hey after implementing the editorials i m still getting WA... plzzz..help me up http://www.codechef.com/viewsolution/2671811
View ArticleMAXIMAL SCORE PATH - WA
WA has been constantly.....poping in my screenhelp me out ....guys.....http://www.codechef.com/viewsolution/2518591
View ArticleWA for CHMOD
Problem link : CHMODMy code : CHMODI know that this solution won't pass the time limit but I can't understand the reason for WA. Please help.
View Articletest case generation
how to generate test cases for problem related to graph or grid with specified condition. for example for graph related problem i have to generate diffrent connected component of graph. just like...
View ArticleHow to determine if double would be precise enough?
I was trying to solve the problem FTRIP Field Trip. I came to the conclusion that I have to calculate some binomial coefficients C(n,k). But the ranges were high. At the worst case I have to calculate...
View Article