Krillin is dead AGAIN Problem
Hi, I am getting wrong answer for krillin is dead again https://www.codechef.com/viewsolution/18909176 Can anyone say me where I am getting it wrong. Thanks in advance.
View ArticleCode Chef Certification Useful for College Admission
I have passed Class X with basic knowledge of Java Code. I am willing to invest time in CodeChef competitions. Will Code Chef Certification Carry some recognition when I apply for UG Colleges (in India...
View ArticleProbable wrong testcases for the question TLG?
Hello. I think there are some serious issues with the testcases provided in TLG. The input instruction says : " The first line of the input will contain a single integer N (N ≤ 10000) indicating the...
View ArticleTLE in Fair Cut
link textcan someone explain this problem in O(n*n) running time. My solution is getting TLE.
View ArticleRUNDIR - Editorial
Problem Link:PracticeContestSetter: Alei ReyesTester: Triveni MahathaEditorialist: Triveni MahathaDifficulty:EASY MEDIUMPrerequisites:Binary Search, GreedyProblem:N students are standing at distinct...
View Articlei have solved the naive chef question n i'm getting correct answer but the...
include <stdio.h>int main() { int i,j,n,t,a,b; float p=0.0,q=0.0,r=0.0; scanf("%d",&t); for(i=0;i<t;i++) {scanf("%d%d%d",&n,&a,&b); int k=(int)malloc(nsizeof(int));...
View ArticleTLE in Sheokand and String(SHKSTR)
can anyone help me in this problem , i am getting TLE in task 3 . I checked up the editorial and the approach seems almost similar. can anyone help? here is the link to my submission. Note - In the...
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 ArticleVSN - Editorial
Problem LinkPracticeContestAuthor:Rahim MammadliTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASY-MEDIUMPrerequisitesCross Product, Binary SearchProblemGiven a stationary point $P$ and a...
View ArticlePlagiarism Help - False Positive MOSS
First of all i would like to say, i am really sry but i am kind of worried about false positive MOSS hit i got in May18B. I totally understand codechef team is busy but it has been over 14 days since i...
View ArticleSolution for VSN giving TLE in python 3 using the editorial approach
I used the same approach as mentioned in the editorial using python 3. I am getting TLE for 6 out of 7 tasks.The link for the code is: https://ideone.com/IZ6ikKCould anyone please check and see whats...
View ArticleNeed help/advice for programming
I am at that stage in programming that whenever I see a question related to trees or graphs I don't even read it and just skip it.I have no knowledge of trees or graphs but I want to learn them.I want...
View ArticleWhats wrong with my code?
Link to Problem:-https://www.codechef.com/problems/VEGETA My Solution:-https://www.codechef.com/viewsolution/18911997
View Articlehackerrank graphs
Can anyone find what is mistake in my solution to the problem roads and libraries. I am getting a SIGSEGV error.https://www.hackerrank.com/challenges/torque-and-development/forum/comments/454647
View ArticleWhat's wrong with my code?
I am trying this problem on longest palindromic subsequence. https://www.spoj.com/problems/JEWELS/ Here is my code- https://pastebin.com/sDKrqg5g I am unable to find the bug.Kindly help.Kindly tell how...
View Articlethe following code does not insert 2nd element ?why>
void insertFirst(int d){ Node* temp=new Node(); temp->data=d; temp->next=head; head=temp; }
View ArticleKrillin is dead AGAIN Problem Code
Can i get correct value of medium using this formula: 3median = 2mean + mode.Or i have to explicitly figure out through element wise compare.
View ArticleBINSHFFL - Editorial
Problem LinkPracticeContestAuthor:Noszály ÁronTester:Misha ChorniyEditorialist:Bhuvnesh JainDifficultyEASYPrerequisitesBFS/Floyd Warshall, ObservationsProblemYou are to convert number $A$ to number $B$...
View Articlewhy showing runtime error
T= int(input()) for i in range(T): n= int(input())s=input().split() count = 0 what = 0 for i in s: if i == s[0] : count=count+1 elif i == s[1]: what = what+1 if count==what : print('Draw') elif...
View ArticleOptimize slow code
Can anyone please look why Im getting wrong answer.problem link:-link textMy solution:link textWhen I ran three loops for few n (size), I noticed that all combinations are not to be checked . Hence I...
View Article