Prime Palindrome HELP Part 3-Time Exceeded
I've optimized the prime function and its still exceeding the time limit? Any ideas? Solution located at : http://www.codechef.com/viewsolution/3901718
View ArticleCHEFBM WA..??
Hey WA is coming plzz provide the test cases where I code fails http://www.codechef.com/viewsolution/3901670 and also whats the max time complexity which had passed ???
View ArticleTANGDIV - Editorial
PROBLEM LINK:PracticeContestAuthor:Ilya MalinovskyTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY-MEDIUM PREREQUISITES:Ad-Hoc PROBLEM:Numbers 1 to N are written in...
View ArticleSEAGM Incorrect Submissions getting AC
While the output to the input:1 4 14 10 63 21 Should be:1 0.5833 In many of the AC answers it is:0 0.5833 Please add this case and rejudge.
View ArticleBinary tree structure in this case.
Imagine a binary tree lying on the floor with nodes as balls and edges as threads, you are given a pointer to a node. When you pick the tree from that node up what will be the structure of the tree....
View ArticlePractice programming
There are so many sites like Codechef , Topcoder , Codeforces , Spoj , Hackerrank , Hackerearth etc to practice coding questions . Which is better approach Start practising on all these sites ,...
View ArticleWhat's wrong with my code for ceil A-B problem ?
Hi, Here's the code for Ceil A-B probleminclude<stdio.h>int main() { unsigned long a=0; unsigned long b=0; scanf("%lu %lu", &a, &b); printf("%lu\n", (a-b)^1); return 0; }What's wrong with...
View ArticleName: special characters & unicode
Hi,I noticed that there is an issue with displaying names with special charaters like accents or c-cedilla (ç). However, there is an utf-8 charset used in the website, so the problem could be in the...
View ArticleApproving an institution : time to do it
Hi,I had registered my institution on my profile since the last lunchtime contest (in April) and it is not approved yet. So, my question is : how long does it take to do it ? In my case, it is not...
View ArticleQsort function in C
how does the qsort function work in Cqsort( s , n , sizeof(struct coord) , compare );how can one manipulate the compare function in qsort while sorting structure rather than a array like above and how...
View ArticleHow is rating computed in case of ties?
@admin: I am wondering how the rating for long contests is computed in case of ties. Specifically, I am interested in the case of the recently ended May 2014 long contest, where me and @aawisong where...
View ArticleMSTICK WA .... plz tell me where is d problm
http://www.codechef.com/viewsolution/3902702 Can view my sol here. Not getting where is the prob,getting correct answer for all test cases
View ArticlePROSUM - Editorial
PROBLEM LINK:PracticeContestAuthor:Vivek HamirwasiaTester:Mahbubul HasanEditorialist:Jingbo ShangDIFFICULTY:CakewalkPREREQUISITES:Simple MathPROBLEM:Given a sequence of numbers A[1..N], find the number...
View ArticleMSTICK - Editorial
PROBLEM LINKSPracticeContestDIFFICULTYSIMPLEPREREQUISITESRange Minimum Query, Simple MathPROBLEMYou are given N matchsticks arranged in a straight line, with their rearends touching each other. You are...
View ArticleCollege wise Codechef ratings- please see this site
Guys please check out this awesome site. You can add your code chef username and it will display rankings of users from your college. Please add your college if it is not present and then add usernames...
View ArticleCeil A-B ,What's wrong with my code ?
//It's the code for Ceil A-B problem in practice setinclude<stdio.h>int main() { unsigned long a=0; unsigned long b=0; scanf("%lu %lu", &a, &b); printf("%lu\n",(a-b)); printf("%lu\n",...
View ArticleUVA 3n+1 problem
Instead of brute force is there any trick or formula to solve this problem. http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=36
View ArticleDifferent output on ideone and devc++
For the problem CHEFBM I wrote this program ... It seems to run fine on devc++ and gives the expected output 3 3 -1 4 but on ideone, it gives the output -1 -1 -1 -1 If I write a statement on line...
View ArticleERROR IN LINKED LIST
#include<stdio.h> #include<malloc.h> struct data { int x; struct data *link; }x; typedef struct data NODE; NODE*head=NULL; NODE*curr=NULL; void insert(int val); void print(); void del();...
View Article