ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1083. Факториалы!!!

TEST 5 WA,HELP
Послано Mukhamejanov 13 фев 2007 14:38
This is my programm;
Compil. PASCAL 7.0

[code deleted]

Edited by moderator 13.02.2007 20:47
Re: TEST 5 WA,HELP
Послано svr 13 фев 2007 17:52
Try next tests by my Ac prog It may be ny prog also wrong
if Ok but WA5 I send additional

4 !!!!
4
7 !!
105
12 !!!!!!!!
48
19 !!!!!
9576
24 !!!!!!!!!!
1344
Re: TEST 5 WA,HELP
Послано Mukhamejanov 14 фев 2007 15:06
Why

12 !!!!!!!! = 48

k:=8;
   12*(12-8)*(12 mod 8)=12*4*4
12 mod 8=4;

19 !!!!! =9576

k:=5;
19*(19-5)*(19-10)*(19-15)*(19 mod 5)=19*14*9*4*4=38304
19 mod 5=4;
Re: TEST 5 WA,HELP
Послано svr 14 фев 2007 18:39
12 !!!!!!!!
k=8
12 mod 8=4
12*(12-8)*(12-2*8)...(12 mod 8)=12*4=48
(12 mod 8) is last number from sequence n(n-k)....(n mod k)
but not additional multiplyer as you think
PS! I think that expierenced members of the syte should
send your training test much bore broader than now
for reason that begginers trying too many time on adjusting
their mind to problems understanding
Re: TEST 5 WA,HELP
Послано Entheogen 14 ноя 2007 06:32
what does ... mean then?  how can it not be a multiplyer?  also (12-2*8) is negative?  I assumed the sequence stopped before 12-ik became negative.

Can someone explain this problem to me in a human language?  Please?
Re: TEST 5 WA,HELP
Послано [GUAP] Koban4eg 15 дек 2007 23:48
12 !!!!!!!! = 12*12mod8 (not 12*(12-8)*12mod8 'cause 12-8 = 12mod8)

Edited by author 15.12.2007 23:48
Re: TEST 5 WA,HELP
Послано RomaN 17 авг 2008 00:18
Why n = 12 if n <= 10?