Does Time limit exceeded or memory limit exceeded means our answer was correct?
Does time limit exceed means our answer was correct but time to run was more? I am getting time limit exceed error, Time to run shown as 1.01 seconds while under the question its shown as 1-2 seconds....
View ArticlePrime Palindrome wrong answer
http://www.codechef.com/status/PRPALINthis is the link to my code....On my system it gives correct output for every input..I don't know against what input is it being tested..please help...
View ArticleATM: "wrong answer"
include<stdio.h>int main() { float x,y;scanf("%f %f",&x,&y); if(((int)x%5==0) && (x + .5 <= y)) printf(".2f",y-x-.5); else printf(".2f",y); return 0; }
View ArticleWA in DISHOWN
I was solving this question but I am getting WA. Can someone point where I am going wrong or any test case where i am getting WA Here is my link to the code.
View Articlewhy do i get a sigsegv
include <stdio.h>int main() { long long a[10000],b[100000]; long long d; for (d=0;d<=1000000000000000;d++) { scanf("%d", &a[d]); if (a[d] = 42) { break; } else { a[d] = b[d]; } } for...
View ArticleKGP16J - Editorial
PROBLEM LINK:ContestPracticeSetter-Arjun Arul_/\_Tester-Arjun Arul_/\_ , Animesh FatehpuriaEditorialist-Abhishek PandeyDIFFICULTY:MEDIUM-HARD PRE-REQUISITES:Mincut-Maxflow Algorithm (especially Cycle...
View ArticleKGP16G-Editorial
PROBLEM LINK:Contest(Mirror)PracticeSetter-Tester-Kevin Charles AtienzaEditorialist-Abhishek PandeyDIFFICULTY:MEDIUM-HARDPRE-REQUISITES:2-D Arrays and Strings, Probability and Expected Values, C.O.B.F....
View ArticleKGP16D-Editorial
PROBLEM LINK:ContestPracticeSetter-Tester-Editorialist-Abhishek PandeyDIFFICULTY:EasyPRE-REQUISITES:Arrays, Looping, Logical thinking.PROBLEM:Formally, the problem can be put up as, you have to...
View ArticleKGP16B- Editorial
PROBLEM LINK:ContestPracticeSetter-Tester- MultipleEditorialist-Abhishek PandeyDIFFICULTY:MediumPRE-REQUISITES:Geometry, Point Inside a Polygon Algorithms , Distance formula, Math, Conditionals.Knowing...
View ArticleWhy Codechef does not make contest problems test cases public after contest...
my humble request to @admin to share test cases of contest problems with editorial, or provide feature to see test cases during submission after contest gets over.. while practicing one get WA, TLE or...
View ArticleArray game
problem link:- link textsolution link:-link textTest case (unlocked) link:-link textUpdatedMy solution works fine on my pc command prompt. I debugged using test case gives output. But for hackerrank...
View ArticleNeed help with BEERUS
I attempted BEERUS with this approach, please tell me if this approach is wrong and how should i attempt it.Using the property A|B + A&B = A+B , I store the sum of input array elements into array...
View ArticleVSN - Editorial
Problem LinkPracticeContestAuthor:Rahim MammadliTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASY-MEDIUMPrerequisitesCross Product, Binary SearchProblemGiven a stationary point $P$ and a...
View ArticleIs solving codechef problems based on category a good preparation for Directi...
I am currently using the syllabus of certification to prepare for coding interview, and then solving some more based on the category plus leetcode problems, is this a good way to prepare for directi...
View ArticleTLE in last test case of CHEF AND FIBONACCI ARRAY (CHEFFA)
Can someone have a look at my code and tell why it is giving tle in last test case.Question is :Chef And Fibonacci ArraySolutionThanks in advance!
View ArticleUnfair Codechef Ratings
So due to some small mistake a while ago when my rating was dropped by around 500 points for plagiarism in a really old contest, I didnt say anything. I gave the June Long Challenge and to my surprise,...
View ArticleCANDY123 - Editorial
PROBLEM LINK:PracticeContestAuthor:Kamil DebowskiPrimary Tester:Marek SokołowskiSecondary Tester:Praveen DhinwaEditorialist:Praveen DhinwaDIFFICULTY:cakewalkPREREQUISITES:none, knowledge of for or...
View ArticleRegarding CCDSAP scholarship and Laddus
When and how will codechef contact college toppers who will be offered 100% scholarship for CCDSAP. And, also since I landed under top 20 Indians when will I get my laddus. I know that I should keep...
View Articlekrillin is dead help
Can someone please tell me where I am wrong . Here is my code. I maintained 2 segment trees for maximum query and for sum query and then I found lower bound of prefix sum for the interval where my...
View ArticleHILLJUMP - Editorial
PROBLEM LINK:PracticeContestAuthor:Hasan JaddouhPrimary Tester:Prateek GuptaEditorialist:Hussain Kara FallahPROBLEM EXPLANATIONThere are N hills located on a straight line. The height of the ith one is...
View Article