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 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 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 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 ArticleANUCBC - Editorial
PROBLEM LINK:PracticeContestAuthor:Anudeep NekkantiTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:MEDIUM PREREQUISITES:Dynamic ProgrammingPrecomputationPROBLEM:Given N...
View ArticleCNPIIM - 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 ArticleADIGIT - Editorial
PROBLEM LINK:PracticeContestAuthor:Dmytro BerezinTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:SIMPLE-EASY PREREQUISITES:PrecomputationPROBLEM:Given N(<=10^5 ) digits...
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 ArticlePOTATOES - Editorial
PROBLEM LINK:PracticeContestAuthor:Shalini SahTester:Shiplu Hawlader and Mahbubul HasanEditorialist:Lalit KunduDIFFICULTY:SIMPLE PREREQUISITES:Prime numbersPROBLEM:Given x(<=1000) and y(<=1000),...
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 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 ArticleGet Started
Can anyone suggest me good books for developing logic and algorithm approach to problems ?Thanks in Advance !!
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 ArticleHow 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 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 ArticleUpdation of Ratings
When will the ratings be updated? Has the Challenge problem been completely judged yet?
View Articlerating 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 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 Article