Submit | All submissions | Best solutions | Back to list |
CODEIT03 - Play with Dates |
Given the date, month and year, find the day.
Input
The first line consists of an integer t, the number of test cases. Then for each test case there are three integers the day, month and year.
Output
For each test case print the day in words in a separate line (the first character should be capitalised followed by lowercase).
Constraints
1 ≤ t ≤ 100
Date/month/year ≥ 11/01/2012
Date/month/year ≤ 31/12/3000
The given date will always be a valid date.
Example
Input: 3 11 1 2012 12 1 2012 13 1 2012 Output: Wednesday Thursday Friday
Added by: | cegprakash |
Date: | 2012-01-09 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |
hide comments
|
||||||||
2013-06-06 09:39:28 Zeref
Some test cases: 13 12 3000 Wednesday 1 1 1 Monday 13 10 2157 Thursday 31 12 10000 Sunday |
||||||||
2013-02-06 15:29:14 Brotherhood
why am i getting wa ? My code working correctly in accordance with calendar. id 8666307 |
||||||||
2013-01-31 08:44:34 !!.Nginx.!!
Java - TLE c - AC same code,same logic... . what the hell..!!!! |
||||||||
2012-06-27 04:56:27 PANKAJ SAINI
very silly mistake.. :P spelling of thursday was wrong... X( ultimately got AC :) Last edit: 2012-06-27 04:57:01 |
||||||||
2012-06-24 11:23:18 daft_wullie
easy in languages with builtin-calender :-) |
||||||||
2012-06-24 05:45:21 Aditya Pande
@cegprakash: i suggest u shift this problem to challenge for code golfing |
||||||||
2012-06-22 04:24:46 PANKAJ SAINI
I am getting right answers as per calendar also, but here wrong answer pls help.. |
||||||||
2012-06-19 11:53:36 jaans
:D finally AC :D silly n cute mistake caused so many wrong answers :( |
||||||||
2012-05-09 16:54:05 Ajey Golsangi
Tricky one. Looks easy, but it's not. 1st March 3000 is a Saturday !!! |
||||||||
2012-04-19 20:53:32 Rocker3011
Don't need of any special algorithm, nice problem, got WA like a boss hahaha and finally AC d: |