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?

AC
Posted by kxurshid 1 Oct 2009 06:06
Some tests:

20 10 2050
mon        3   10   17   24   31
tue        4   11   18   25
wed        5   12   19   26
thu        6   13  [20]  27
fri        7   14   21   28
sat   1    8   15   22   29
sun   2    9   16   23   30
//////////////////////////////
4 7 1890
mon        7   14   21   28
tue   1    8   15   22   29
wed   2    9   16   23   30
thu   3   10   17   24   31
fri [ 4]  11   18   25
sat   5   12   19   26
sun   6   13   20   27

Good luck!