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?

Some help to ...
Posted by Oleg Strekalovsky [Vologda SPU] 14 May 2009 20:02
I solved this problem using:
Calendar calendar = new GregorianCalendar(year,month-1,1)
It helped me to get position of the first day of month and day's count at month.

Pay attention to:
1)Day's count in month.
2)Use trim() to remove  ending spaces.