ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1201. Which Day Is It?

Can anyone explain me which day of week was 1.1.1600???
Posted by Varduhy 23 Oct 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???
Posted by Armen Tsirunyan 18 Dec 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???
Posted by Varduhi Yeghiazaryan 11 Feb 2009 13:27
Thanks a lot!!! :)