CAKEDOOM - 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 Articlemaximum limit of unsigned long long
guys,a little help here,when i assign a value to the unsigned long long ,the compiler shows ,integer constant is too large for long type..but the strange thing is if i enter the same value using...
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 ArticleLOLCODE Error :(
Here is a simple code:HAI 1.3 CAN HAS STDIO? I HAS A VAR VAR IS NOW A NUMBR GIMMEH VAR I HAS A B ITS PRODUKT OF 4 AN VAR I HAS A C ITS SUM OF 1 AN B VISIBLE C KTHXBYE I'm getting the error, 6: expected...
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 ArticleWhat are the problems to be completed in the practice sessions so as to be...
Is it the easy session/medium/expert session in the practice to compete?
View Article