ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > Практика №2 > задача:


1. Factorial

Практика №2

Старт: 29.сен.2016 в 13:46:18
Финиш: 29.сен.2016 в 17:00:18
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (1)

Задачи турнира

• 1. Factorial
• 2. Степень двойки
• 3. How many digits?
• 4. How many divisors?

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 1000/1000/1000/1000 мс. Лимит памяти 65000/65000/65000/65000 Кб.

Problem description

The factorial of a non-negative integer n is the product of the positive integers less than or equal to n. This is written as "n!", and pronounced "n factorial". 0!=1, 1!=1, 2!=2, 3!=6, 4!=24, 5!=120. Write a program that reads a non-negative integer from the standard input and computes its factorial.

Input

There is a single integer N on the first line of input (0 ≤ N ≤ 20).

Output

Write value of N!.

Example

stdin stdout

3

6

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

www.contester.ru