GERALD04 - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:ProgrammingPROBLEM:GF --- (t2 - t1) --- Chef --- dist --- HomeGiven...
View ArticleCHEFGM - Editorial
PROBLEM LINK:PracticeContestDIFFICULTY:EASY-MEDIUMPROBLEM:2-player game played on k piles of integers where in each turn a player chooses one pile and a number in that pile; all numbers greater than or...
View ArticleDecember Challenge ranking update
@admin It is been almost 5 days since the contest is over still rankings have not been updated yet. Why is it taking so much time?
View ArticleCan somebody explain the dynamic programming approach in CIELRCPT?
Hi here's the link could somebody please explain the dynamic programming approach for this question given in the editorial..here's the link.. http://discuss.codechef.com/problems/CIELRCPThow to get eqn...
View ArticleHelp regarding the following code?
"Input The first line contains integer t, the number of test cases. Integers K are given in the next t lines. Output For each K, output the smallest palindrome larger than K."#include<stdio.h>...
View ArticleQuery regarding December rating update?
When the ratings after cook 41 will be calculated? Why the ratings haven't been calculated yet after dec13?
View ArticleTLE in PRETNUM
It Is a very strange error. I have given max test cases each worst possible getting a runtime of 0.37 on ideone. The time limit is (1-2) still getting tle.One of the accepted solutions was run by me on...
View ArticleWhat is it at the end of codechef pages?
I see something like this at the end of every page in codechef.TRACE: cc-strike start TRACE: you are logged in TRACE: cc-strike end DEBUG divToAdd.length (1)=0 DEBUG divToAdd.length (2)=0 DEBUG:...
View ArticleFastest read / write in java
I am using simple bufferreader but it is slow enough and due to this in some program i got time limit exceed problem . So guys tell me about fastest read and write code for java program.
View ArticleRuntime error(NZEC) in byteland ques. (java program)
The following java program is showing runtime error(NZEC). Please help me to fix this. import java.util.*; class coins { public static void main(String args[]) { int i=10; int n=0; Scanner in=new...
View Articleruntime error(SIGSEGV) in byteland coins ques. Please help.
The following program is showing runtime error(SIGSEGV). Please help me to fix this.#include<stdio.h> int main() { int i=10; int n; while(i--) { scanf("%d",&n); printf("%d\n",calc(n)); }...
View ArticleBook for probability and Permutation and Combination
I want to study Permutation and Combination and Probability . Will anybody suggest me a good book to follow ? Thanks! in advance
View ArticleHow to solve DECORATE?
@all please discuss your approaches for the DECORATE question. I've gone through the Manacher's algorithm to find the number of palindromes.But after that how to solve the combinatorial problem?What I...
View Articletester's solution of KMHAMHA.
Hello everyone. I was going through the solution of the tester of the problem of kamehameha. I understood the hashing part but the part i could not understood is the augment function. I mean yeah i...
View ArticleCHODE - Editorial
PROBLEM LINK:PracticeContestAuthor:Vitalij KozhukhivskijTester:MahbubEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:Programming LanguagePROBLEM:Given a simple encryption method using the...
View ArticleDifference between getchar() & getchar_unlocked()
getchar_unlocked() is usually used to get faster input.But I have not understood the difference between the getchar_unlocked() and getchar(). Also, why is getchar_unlocked() faster and what does the...
View ArticleGCD2 Problem : EASY
In solutions of participants most of them have divided each digit of the very large number(10^250) with the other number for finding HCF ?Any1 knows why is it so ? which algorithm is it ?
View ArticleHelp with Runtime Error in my Code
I am getting a runtime error (SIGSEGV) on my code and I don't know how to fix it. Please help. Thanks.Problem:http://www.codechef.com/problems/POINTSMy...
View ArticleICPC Amritapuri onsite questions
Is there any way in which we can get to solve the onsite questions of Amritapuri? Can codechef please upload those?
View ArticleQTREE6 - Editorial
PROBLEM LINK:PracticeContestAuthor:Minako KojimaTester:Gerald AgapovEditorialist:Jingbo ShangDIFFICULTY:HardPREREQUISITES:Link Cut Tree, Heavy-Light DecompositionPROBLEM:Given a 0/1 colored tree of N...
View Article