calculating the memory acquired by the code submitted
Hi Guys! I just want to know that how codechef calculates the memory acquired by the code and show it in the submissions table under Memory column (like, 2.6M;)? And, how could a coder can see the same...
View ArticleCNPIIM says wrong answer, but I checked it!
Usually when it says "wrong answer," I double check everything because I know something is wrong. But in this case, on my last submission I had, what I believe, to be perfect answers.I went through the...
View ArticleRequesting new feature
As codechef is platform to learn and practice, It would be very helpful if codechef can show on which test case our solution fails during contest. As it would be very helpful to know the silly mistake...
View Articlefrom 5 to 7-8.
Hey, fellow coders. I have been participating in Code-chef challenges for like 2 years now, trying not to miss a single contest. And it has been long since i have been solving 4-5( at max 6) problems...
View ArticleViolataion Of Codechef Code Of Conduct
Seems like plenty of fake codechef profiles have been made recently. Some of them...
View ArticleInfinitum April 14 - HackerRank
Hi, fellow Coders.I am glad to invite you to join the amazing math contest Infinitum April'14, a monthly contest restricted to mathematics domain, held on HackerRank.Register at...
View ArticleNUMFACT - Where the difference is coming.
import math def factorize(n): factors = [] number = n factor = 2 while number > 1: factor = nextp(number, factor) factors.append(factor) number /= factor return factors def nextp(n, f): if n % 2 ==...
View ArticleSmall factorial: help
i have run this code in my compiler it work fine till its upper limit as per given in the question. But codechef gives it wrong every time. please any body help. the link to the question given...
View Articlewrong answer in adigit
include<stdio.h>//#include<conio.h> int main() { int l,p,i,k,j,x,d,m,n,s; unsigned int a[100002]; scanf("%d",&n); scanf("%d",&m); for(i=1;i<=n;i++) {scanf("%d",&a[i]);}...
View ArticleBINTREE april challenge..Can anyone tell me what's wrong with this approach??
#include<iostream> #include<cmath> #include<math.h> using namespace std; int main() { unsigned long long int i,j,pos1,pos2,num1,num2,cases; cin>>cases; while(cases--) {...
View ArticleC program compilation error
when this code is compiled to calculate the return value of f(p,p), if the value of p is initialized to 5 before the call? Note that the first parameter is passed by reference, whereas the second...
View ArticleBytelandian gold coin - wrong answer why?
Here is my code, any help??include <stdio.h>int main(){ int i, num, a, b, c; scanf("%d", &num); long int coin[num], k[num]; for(i=0; i<num; i++)="" scanf("%d",="" &coin[i]);=""...
View Articleparameter passing in function
#include<stdio.h> int main() { int i=5; printf("%d %d %d %d %d",i++,i--,++i,--i,i); return 0; } It's giving a output 4 5 5 5 5,but it should be 4 5 5 4 5.Why is this happening?
View Articlein binary tree...... why I get wrong answer
#include<stdio.h> int main() { int c; long int n,a; long int i,j; scanf("%ld",&n); for(a=1;a<=n;a++) { scanf("%ld %ld",&i,&j); c=0; while(1) { if(i>1&&i>j) {...
View ArticleFBCHEF - Editorial
PROBLEM LINK:PracticeContestAuthor:A Surya KiranTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:MEDIUM-HARD PREREQUISITES:Segment treesBIT DFS, BFS, GraphsPROBLEM:Given a...
View ArticleUpdation of Ratings
When will the ratings be updated? Has the Challenge problem been completely judged yet?
View ArticleProfile picture is not being displayed properly
Hello Team Codechef,After a long time I thought of changing my profile picture, I selected one good jpg image and uploaded it. Even after refreshing the profile page lot of time I am not able to see...
View ArticleIs answering like this allowed ? Possible copying ?
April challenge 2014 marked the beginning of my Competitive programming journey.Since I am new to this - it took me quite a bit of time to figure out the CNPIIM code but finally when I did - my soln...
View Articletime difference in two same solution
i submitted my solution for the problem Please like me in jan2014 long challenge. my first solution got time limit exceeded than i created one more solution and in that solution i just added function...
View ArticleFacebook Interviewstreet Sample Question
I have been trying to work on the sample problem on Facebook's Interviewstreet page for quite a while. Here is the problem:-An Arithmetic Progression is defined as one in which there is a constant...
View Article