Jump to content
  • Advertisement
Sign in to follow this  

Online Programming Problems

This topic is 3035 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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 ;-) http://uva.onlinejudge.org 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..

It services Chicago
Computer repair Ch

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!