Some Problems in the state of Codechef
TL;DR This site is starting to become really bad and unprofessional for no reason.-An open letter to Codechef administration, and all Codechef users-I joined Codechef almost two years ago. Since I'm a...
View ArticleWhat is happening on Codechef?
The submissions are not evaluated in within the proper time...:( It is still checking...I submitted the code 3 minutes before...:( I am not saying this to provoke anyone... Please check this matter...
View ArticleDifference between getchar() and getchar_unlocked()
getchar_unlocked() is usually used to get faster input.But I have not quite understood the difference between the getchar_unlocked() and getchar(). Also, why is getchar_unlocked() faster and what does...
View ArticleAccess Denied December Cook-Off 2013
@admin: Again getting access denied error on problems page. Home » Compete » December Cook-Off 2013 » Chef Goes Through Segments You are not authorized to access this page.
View Articleproblems of Dec cook not found in practice session?
not able to view them as practice prolems in the link : for eg: http://www.codechef.com/problems/GERALD04
View ArticleGERALD3 - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:HardPREREQUISITES:Suffix Array, Longest Common Prefix, Balanced Binary Search Tree,...
View ArticleGERALD06 - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:EasyPREREQUISITES:Graph Theory, Line GraphPROBLEM:Given a line graph L corresponding to a...
View ArticleCOOK 41 && dec13
When the ratings after cook 41 will be calculated? Why the ratings haven't been calculated yet after dec13?
View ArticleCIELRCPT - Editorial
PROBLEM LINKPracticeContestDIFFICULTYCAKEWALKPREREQUISITESGreedy AlgorithmsPROBLEMYou need to find the representation of a given integer N as a sum of powers of two up to 211 with the smallest number...
View Articlecould somebody please explain the dynamic programming approach given in the...
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 ArticleGERALD03 - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:SimplePREREQUISITES:GreedyPROBLEM:Given a sequence of intervals [Li, Ri], try to transform...
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 ArticleGERALD04 - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:ProgrammingPROBLEM:GF --- (t2 - t1) --- Chef --- dist --- HomeGiven...
View Articleruntime error why running right on my pc
#include<stdio.h> void main() {int t,dist,output,j,i; char a[6],b[6]; scanf("%d",&t); for(i=0;i<t;i++) { scanf("%s",a); scanf("%s",b); scanf("%d",&dist);...
View Articlecan you tell me what is wrong with this code
it is showing runtime error on ideone here's the codeinclude<stdio.h>void main() {int t,dist,output,j,i; float k; char a[6],b[6]; scanf("%d",&t); for(i=0;i<t;i++) {="" scanf("%s",a);=""...
View Articlehow to reduce time taken by following program....getting tle error
#include<stdio.h> #include<math.h> void check(int num) { int i,flag; if(num==2) { printf("2\n"); } for(i=2;i<=((int)(sqrt(num))+1);i++) { if(num==1); else if(num%i==0) { flag=1; break; }...
View ArticleGerald 04- december cook off
Whats wrong with the following code : http://www.codechef.com/viewsolution/3124731 I am doing exactly the same way mentioned in tutorial . Question's link :...
View Articlerun time error why
please can you tell the error in the codeinclude<stdio.h>void main() {int t,dist,output,j,i; float k; char a[6],b[6]; scanf("%d",&t); for(i=0;i<t;i++) {="" scanf("%s",a);=""...
View ArticleGERALD05 - Editorial
PROBLEM LINK:PracticeContestAuthor:Gerald AgapovTester:Tasnim Imran SunnyEditorialist:Jingbo ShangDIFFICULTY:MediumPREREQUISITES:Dynamic Programming, CombinatoricsPROBLEM:Given a lot of objects,...
View ArticleHelp on range updates in Segment Tree
Can anyone please tell me how to update an interval in segment tree?
View Article