|
|
вернуться в форумCan anyone explain me which day of week was 1.1.1600??? 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??? 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??? Thanks a lot!!! :) |
|
|