Why my rating for june long contest not being updated?
Why my rating for june long contest not being updated?
View ArticleCollege Users
I want to know the users of my college that are on Codechef. How can I get to know their names and handles?
View Articleadvantage of using assert in program
i want to know that some programmer use assert in their program , is there any advantage of using assert while running the program on judge where all the constraints are defined and are guaranteed that...
View ArticleLOWSUM - Getting TLE! How to speed up?
I was trying to implement the solution by following the editorial.http://discuss.codechef.com/questions/29659/lowsum-editorialI am still getting a TLE. What am I missing?#include<stdio.h>...
View ArticleHelp on Fast input/output
can someone explain me what's fast input/output. I m sorta new to this stuff and would really appreciate some help. Thank you.
View ArticleCOMPILER - Editorial
PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Sergey KulikEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:AD-HOC PROBLEM:Given a bracket sequence, print the length of largest prefix...
View Articletime limit in june guessing
//CODE DELETED why it always show time limit exceed i already check it is optimize
View ArticleWhich algo can be used for this problem. need solution to this.
You want to cut a piece of paper by a certain fixed rule to make some pieces of white or blue colored square paper with various sizes. If the size of the entire paper is N×N (N = 2^K; 1 ≤ K ≤ 7; K =...
View Articleneed help with MARBLEGF, fully line-by-line commented code included
I have the link to fully commented code. It passes the sample input, but is incorrect. It's only 60 lines of code and straightforward. Each line is commented....
View ArticleDP in LEBALONS, help needed, anyone?
I cross checked it with the tester's solution on some test cases.Can somebody tell me why is it a WA.What is wrong in the DP for this question.I have posted this question for quite a long time, no...
View ArticleAlgorithm for modular exponentiation
ALGORITHM 2- MODULAR EXPONENTIATIONBy @pratku123For more methods and a detailed explanation refer to the wikipedia page of Modular exponentiation.We posted this on our facebook page and thought that we...
View ArticleMaxim and Progressions
Needed one clarification regarding second test case. 1 2 1 is the given sequence. As per the question, 1 2 1 and 2 1 both are sub-sequence. As per the condition, in any sub-sequence a[i] < a[i+1]....
View ArticleCan anyone explain me LEBLOCKS question
I am facing difficulty understanding the little elephant and block question. Can anyone explain it in simple sense.
View ArticleLucky Long: problem with raw_input()
I am getting a WA if I use raw_input(). If I use raw_input.strip(),answer gets submitted!! Why are we using raw_input.strip() here? plzz help! Thanks in advance! link to question...
View ArticleChinese and eastern european domination????
How come chinese and eastern european people dominate programming competitions like codechef while we hardly ever manage top 3. Some of the times not only professionals even their high school students...
View Articlelink for live rankings
just little left for june long challenge, and then follows short one. live rankings for June 2014 long challenge: http://www.codechef.com/rankings/june14live rankings for June 2014 short challenge:...
View Articlewhich one is faster, scanf or getchar
Please explain this , I am using scanf in my C++ code for chef and functions and I am getting TLE. Help
View ArticleHOLES Getting WA
include <stdio.h>int main() { int t; scanf("%d", &t); fseek(stdin, 0, SEEK_END); while (t--) { char a[101]; int i, numberOfHoles = 0; fgets(a, 100, stdin); for(i = 0; a[i] != '\0'; i++) {...
View ArticleA SINGLE LINE LOGIC ALSO GIVING TLE FOR DCE05 question !!!!
the question link is http://www.codechef.com/problems/DCE05 my solution is below...!!! package mat; import java.lang.Math; import java.util.Scanner; public class Mat { public static void main(String[]...
View Articleexecution time
Will i please be notified about the execution time of pow function in math.h used in C language. Does it takes longer than writing a code using loops myself??
View Article