no. of zeros in a factorial
#include <iostream> using namespace std; int main() { long int n,sum=0; cin>>n; long int k=n; while(k>=5) { k=k/5; sum=sum+k; } cout<<sum<<endl; return 0; } Nothing wrong here??
View ArticleCode Chef API
@admin , @everyone : I wanted to develop some mobile app's for code chef ( starting with Android ) and some utilities like maybe desktop arena , statistics collector . Is it possible for Code Chef to...
View Articleusing a structure
i have completed the WSTRING problem by using a structure. That works fine on my system but gives a CTE on codechef. How can i solve this problem ???
View ArticleDISCUSSION FOR LEMOUSE
Please elaborate the explanation on LEMOUSE JUNE CHALLENGE 2013.
View Articlenew to programming
hii am very new to c and C++ programmingi find most of the programs even in easy section tough and solutions are like alien to mewhat should i do?
View ArticleNZEC error in java code for problems SUMTRIAN and SPOON
Following are the two codes that ran perfectly in my ide namely eclipse and also ran in online ide: ideone.com with correct output. However codechef gives NZEC error while there is no "division by...
View ArticleChallenges
After solving a couple of challenges in long contests I would like to say that it would be really nice to have at the beginning of the contest the problem setter/tester score for that challenge...
View ArticleEvaluation taking too much time!
@admin : Its taking around 2-5 min in evaluating a code ?
View ArticleWhy the ratings of june long contest haven't been updated yet?
Generally Ratings of users is updated within 1 day of the end of the contest. but this time it's being delayed... what's the reason?
View ArticleTAKE A PICTURE
Hi everyone, I need help to create a java program to take a picture using a webcam. Thank you :)
View ArticleYandex.Algorithm 2013 in Saint Petersburg, Russia, $18000 in prizesEdit
In 2013 Yandex will host an open programming championship on the new Yandex.Contest system, with original rules, prizes, monetary awards and an exciting final round in St. Petersburg, Russia. But the...
View Articlesmall factorial
import java.util.*; import java.io.*; import java.math.BigInteger; class test { public static void main(String [] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{...
View ArticleWeak test cases for TKCONVEX.
The test cases for the problem TKCONVEX are very weak. Even though the problem was rejudged during the contest, still I am able to find many solutions which fail very simple test case.8 4 1 2 3 6 6 6 6...
View Article[closed]TAPALIN_use of MOD
please tell what is the problem in the following code.The code goes well till n=12 but gives wrong answer at n=13 as the modulo operation is not working fine.Please identify the problem :...
View Articleplease help me with this code for Sums in Triangle
#include<iostream.h> int main() { int n,s[50]={0},n1; cin>>n; n1=n; while(n) { int t,temp; int i=0,k; int sum=0; int a[50]; cin>>t; temp=t; while(t) {k=0; while(k<t) {...
View Articledynamic programming
i want to do practice on dynamic programming. Can some one provide me the link of dynamic programming problems .please give me the link of problems as much as possible....
View ArticleFCTRL2 :getting wa
please help.......i'm getting wrong answer. i don't know wats wrong with the code . Here is a link to my solutionClick here
View ArticleWhy is Python 2.7 missing in this problem?
In the problem GCD2 I found that Python 2.7 is missing from the Judge. Why?
View Article