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

Общий форум

HHEELLPP !!!! How can I check if the number is devides by 7 ???
Послано Romanchik Vitaly 9 июл 2003 21:34
HHEELLPP !!!! How can I check if the number is devides by 7 ???
A hint
Послано TheBlaNK 9 июл 2003 22:17
z=x+y

z mod c = (x mod c + y mod c) mod c

c is only 7.It's not big.
and the number always has 1, 2, 3, and 4 .

Good luck,
TheBlaNK

P.S. two of my friends used search (permute them) and got AC. - -'
Oops!! i misunderstand the question,sorry.i think u ask for 1095 (-)
Послано TheBlaNK 10 июл 2003 01:05
> z=x+y
>
> z mod c = (x mod c + y mod c) mod c
>
> c is only 7.It's not big.
> and the number always has 1, 2, 3, and 4 .
>
> Good luck,
> TheBlaNK
>
> P.S. two of my friends used search (permute them) and got AC. - -'
It's OK ! I mean this problem ! Thank you wery much !!!
Послано Romanchik Vitaly 10 июл 2003 02:25
> > z=x+y


> >


> > z mod c = (x mod c + y mod c) mod c


> >


> > c is only 7.It's not big.


> > and the number always has 1, 2, 3, and 4 .


> >


> > Good luck,


> > TheBlaNK


> >


> > P.S. two of my friends used search (permute them) and got AC. - -'