АВТ
Language: Russian
English

Remote Training on Programming

Problems Online status Contests
News FAQ E-learning
For authors:
Register  ||  Login
 
Hello, Guest! Please login or register.

1810. Power and Factorial

Time Limit: 1 seconds
Memory Limit:262144KB
Points:100
View Problem Statistics Submit Problem added debug

Дано целое N. Найти 3N и N! (читается N факториал, равно произведению всех целых чисел от 1 до N включительно, 0! = 1).

Input

Одно целое число N (0 ≤ N ≤ 20)

Output

Два целых числа - ответ. Числа разделяйте пробелом или переводом строки.

Sample

InputOutput
1
3 1

View Problem Statistics Submit Problem discussion Author/source:
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / Contest VML for 7 Form, cycles /
1810. 1811. 02 - Sinuses 1812. 03 - Sum of sinuses 1813. 04 - Double factorial
Problems from Contests and Camps / School olympiads and couses of Vologda region / Different Contests / VML: branches and loops contest for beginners /
1782. 2 - One step of king 1810.
time generating 0.094 sec.
© Copyright VSU, AVT, Nosov D.A., Andrianov I.A.