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

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


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

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


ANUCBC - Editorial

PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:MEDIUM PREREQUISITES:Dynamic ProgrammingPrecomputationPROBLEM:Given N...

View Article

CNPIIM - Editorial

PROBLEM LINK:PracticeContestAuthor:Bruno OliveiraTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:EASY PREREQUISITES:Number Theory PROBLEM:Find number of 2X2 matrices such...

View Article

ADIGIT - Editorial

PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:SIMPLE-EASY PREREQUISITES:PrecomputationPROBLEM:Given N(<=10^5 ) digits...

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


POTATOES - Editorial

PROBLEM LINK:PracticeContestAuthor:Shalini SahTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:SIMPLE PREREQUISITES:Prime numbersPROBLEM:Given x(<=1000) and y(<=1000),...

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

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


Get Started

Can anyone suggest me good books for developing logic and algorithm approach to problems ?Thanks in Advance !!

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


How to solve graph question

I am a beginner in Graph. I solve problem of other tag but when i saw Graph tag then I unable to solve it. Some time i understand the approach but unble to implement the code.Please suggest me way to...

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


Updation of Ratings

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

View Article

rating problem

why my long contest rating has decreased??? this month I participated on the APRIL LONG CHALLENGE and solved 1 question, but my rating decreased. what is the reason???

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


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