by what name should i save my java file
Sir, I'm using Java to solve the problems, tell me two things. 1. In what way I have to take inputs 2. What name i have to give to my main classPlease, reply asap. Time is running.Devendra
View ArticleNumber of Computations per second
I always wonder what is the number of computations that a codechef problem does in 1second.Is it of the order 10^8 or 10^9 if i have an algorithm which in worst case does 2*10^8 calculations per second...
View ArticleWA after many attempts
Hi everyone! I've written my code for a problem, declared all the data as unsigned long long int, tried many many test cases. Works completely fine on my PC. Can anybody give a hint as to what can...
View ArticlePOTATOES - Editorial
PROBLEM LINK:PracticeContestAuthor:Shalini SahTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:SIMPLE PREREQUISITES:Prime numbersPROBLEM:Given x(<=1000) and y(<=1000),...
View ArticleWA in forgotpw
i am getting WA in forgot password.What are some corner cases which i may be missing? what is the answer if s contains '.'?
View Articlejava: NZEC runtime error in FORGETPW
i am getting a runtime error of NZEC in java all the time. Please help/suggestions.
View Articleclarification in question [forgot passward]
is it possible that S evaluates to "." after applying the rules?
View ArticleFenwick tree questions
Can anyone suggest some questions which are based on concept of Binary indexed trees(fenwick trees) and RMQ on codechef?
View ArticleHow do i know where my code failed!!!!
There should be some provision for showing for which test case our code failed...There are always some questions where we feel we are getting all test cases right, logic right still it gives WA..It...
View Articleerror in for loop using long long
i am encountering error in this line of the code for(i = 0; i < length; ++i) { scanf("%d",&arr[i]); } where i is long long type and arr is array of int.problem is it does work for i below 1000...
View ArticleNZEC error in CHEFZOT
The program is running correctly in my pc, but it gives an NZEC error here. Problem:CHEFZOT http://www.codechef.com/JUNE14/problems/CHEFZOT solution: http://www.codechef.com/viewsolution/4002779
View ArticleGUESS and FORGETPW....!!!!
working in my pc, but here WA...:( Applied all the boundary conditions.
View ArticleGetting Wrong answer in Problem CHEFZOT
I think the program is running well in my pc, but it is giving wrong answer here. Problem: CHEFZOT ( http://www.codechef.com/JUNE14/problems/CHEFZOT/ ). Program submitted by me:...
View ArticleGetting WA for GUESS
Hello Everyone,I'm trying to submit the solution for the Problem GUESS but every time i'm getting WA here. I've tried 9 times but it failed. I'm really very disappointed. It runs correctly on my pc....
View ArticleChef and Function MOD for negetive numbers
chef and function (FUNC) June Challenge: is -1%1000000007 to be taken as -1 or is it to be taken as 1000000006. Please answer this because it is creating confusion.
View ArticleGETTING WA IN FCTRL2
The program works on ideone and my computer by getting wrong answer here......pls help me in figuring this out.... http://www.codechef.com/viewsolution/3899163
View ArticleHow do some people get AC for their C++ solution and I get TLE, even when my...
My C++ program for the http://www.codechef.com/JUNE14/problems/DIGJUMP ran at 1.08 seconds and got TLE.When I looked at other people who got AC, there were a few that had execution times higher than...
View Article