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

Обсуждение задачи 1201. Какой сегодня день?

Can anyone explain me which day of week was 1.1.1600???
Послано Varduhy 23 окт 2008 17:36
Was it Tuesday or Saturday???

Edited by author 23.10.2008 17:36
Re: Can anyone explain me which day of week was 1.1.1600???
Послано Armen Tsirunyan 18 дек 2008 23:16
Well, there's a simple way to find that out, isn't there?
Pseudocode here:
begin
For(i = mon, i<=sun; ++i)
{
    Solve problem assuming 1 Jan 1600 was i;
    if(YourOutput==SampleOutput)
      break;
}
if(i>sun)
    you have solved the problem wrongly whatsoever;
else
    it's very LIKELY that 1 JAN 1600 was i;
end.


But in order to save time, you can just believe me that 1 Jan 1600 was Saturday. At least assuming that my AC program works correctly:)

All the best.
A.
Re: Can anyone explain me which day of week was 1.1.1600???
Послано Varduhi Yeghiazaryan 11 фев 2009 13:27
Thanks a lot!!! :)