Quantcast
Channel: CodeChef Discuss - latest questions
Browsing all 39796 articles
Browse latest View live
↧

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 Article


CNPIIM 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 Article


Requesting 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 Article

from 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 Article

Violataion Of Codechef Code Of Conduct

Seems like plenty of fake codechef profiles have been made recently. Some of them...

View Article


Infinitum 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 Article

NUMFACT - 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 Article

Small 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 Article


wrong 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 Article


BINTREE 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 Article

C 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 Article

Bytelandian 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 Article

parameter 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 Article


in 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 Article

FBCHEF - 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 Article


Updation of Ratings

When will the ratings be updated? Has the Challenge problem been completely judged yet?

View Article

Profile 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 Article


Is 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 Article

time 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 Article

Facebook 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
Browsing all 39796 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>