HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Contests > IMPC - 2013-2014 > problem:


2013-12-40. 50342 - 100 Factorial

IMPC - 2013-2014

Start: Mar.16.2013 at 12:00:00 PM
Finish: Mar.16.2013 at 05:00:00 PM
The contest is finished!
• Contest scoreboard

Guest
• Review clarifications (3)

Contest problems

• 2013-04-70. 50296 - Total Discount...
• 2013-04-80. 50343 - The number of...
• 2013-04-90. 50332 - Variance of a ...
• 2013-05-10. 50552 - Casual shoes
• 2013-05-30. 50580 - Days passed
• 2013-05-40. 50553 - Divisible by m
• 2013-05-50. 50593 - Transporter
• 2013-12-10. 50352 - Selling Cows
• 2013-12-40. 50342 - 100 Factor...
• 2013-12-50. 50674 - Collecting Eggs
• 2013-Nov-01. 50328 - How far away
• 2013-Nov-02. 50347 - Selling Oranges
• 2013-Nov-05. 50354 - Intersecting ...

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Question by Ibrahim Mesecan.

100 Factorial

  In mathematics, n factorial is the multiplication of all the numbers from 1 to n. e.g.
     5!=1*2*3*4*5
  and that is equal to 120.

Question:
Write aprogram that calculates n factorial where n is between 1 and 100.
Note: 100 factorial is 158 digit long number. So, you cannot use standard data types to store such big numbers. For C, C++ you have to use arrays.

Input specification
You will be given just one number (n) where 1 ≤ n ≤ 100.

Output specification
Calculate and show the result of n!.

 Sample Input I   
  10
 Sample Input II   
  20
 Sample Output I   
  3628800
 Sample Output II   
  2432902008176640000   


Для отправки решений необходимо выполнить вход.

www.contester.ru