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
|
||||||||
2012-04-05 15:01:23 Kunal Rout
I have checked every single day.first I checked 1/1/2012 and from 1/1/2012 to 31/12/3000 whether the next day following the previous is correct by running a loop. Can you see my code ( ID: 6365832 ) Even I have solved the maya calendar using the same logic! Last edit: 2012-01-19 06:43:53 |
||||||||
2012-04-05 15:01:23 cegprakash
The first character should be caps followed by small letters |
||||||||
2012-04-05 15:01:23 Kunal Rout
Why am I getting wrong answer again and again even though my code is correct. Is there any problem with the input output format? |
||||||||
2012-04-05 15:01:23 Jitesh
I'm getting a wrong answer even though my answers are correct......Can someone tell me where I'm wrong...... Still not getting where I'm wrong........ Last edit: 2012-01-18 07:52:11 |
||||||||
2012-04-05 15:01:23 Smit Mehta
Again it is giving me WA without considering any blank lines. I am using standard python library so my answer cant be incorrect! Prakash says: Dude I'm rofl after looking at your code! Don't you know what are the days in a week @Prakash : Sorry man! mistake on my part. apologies :( Last edit: 2012-01-23 12:19:29 |
||||||||
2012-04-05 15:01:23 cegprakash
There is no blank line between inputs and outputs. Each case in each line! |
||||||||
2012-04-05 15:01:23 Smit Mehta
please specify no. of blank lines you are giving for input and output!! My python code is giving WA again and again! |
||||||||
2012-04-05 15:01:23 david_8k
What about leap years? |