Sign in to follow this  

Online Programming Problems

Recommended Posts

I've always been a fan of project euler. Today I found another website that is similar in spirit but is not so mathematically biased. It's biased more toward the type of problems you would see in an actual programming competition. Unlike Project Euler, you don't just type in the answer and ask it to check. Instead, you enter your entire *program* and it compiles it for you, runs it on the server and checks the answer, and updates your account if it is correct. I thought some people here might be interested. The problems are more difficult than they first appear, because reading the input/output requirements *very* carefully is extremely important. I figured this out after bashing my head over trying to understand why it was telling me "Wrong Answer" for the first problem when i was sure it was correct. It's also unforgiving. You don't know the input they're using, you don't know why your answer was wrong, so it can be quite a challenge. Note that the website layout is crap and is actually a little buggy, but the problems are itneresting and challenging, so that can be forgiven ;-) Hopefully someone finds this interesting :P

Share this post

Link to post
Share on other sites
Problem code: FCTRL2

You are asked to calculate factorials of some small positive integers.

An integer t, 1<=t<=100, denoting the number of testcases, followed by t lines, each containing a single integer n, 1<=n<=100.

For each integer n given at input, display a line with the value of n!
Sample input:


Sample output:


Added by: Adrian Kosowski
Date: 2004-05-28
Time limit: 1s
Source limit: 2000B
Languages: All except: TECS
hide comments
Previous 1 2 Next >
2009-12-31 18:03:49 Jason Robinson
It seems that bignum is disabled for Perl. How can we provide the desired answer without it?
2009-09-21 07:40:31 小岛
Evaluating the scale of the result sometimes is important..especially for this one..

[url=]It services Chicago[/url]
[url=]Computer repair Ch[/url]

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this