CODEIT03 - Play with Dates
Problem Statement:
Given the date, month and year, find the day.
Input Specification:
The first line consists of an integer t, the number of test cases. Then for each test case there are three integers the date, month and year.
Output Specification:
For each test case print the day in words in a separate line (The first character should be capitalised followed by lowercase).
Input Constraints:
1 <= t <= 100
Date/month/year >= 11/1/2012
Date/month/year <= 31/12/3000
The given date will always be a valid date
Sample Input:
3
11 1 2012
12 1 2012
13 1 2012
Sample Output:
Wednesday
Thursday
Friday
hide comments
Jitesh:
2012-04-05 15:01:23
I'm getting a wrong answer even though my answers are correct......Can someone tell me where I'm wrong......
|
|
Smit Mehta:
2012-04-05 15:01:23
Again it is giving me WA without considering any blank lines. I am using standard python library so my answer cant be incorrect!
|
|
cegprakash:
2012-04-05 15:01:23
There is no blank line between inputs and outputs. Each case in each line! |
|
Smit Mehta:
2012-04-05 15:01:23
please specify no. of blank lines you are giving for input and output!! My python code is giving WA again and again! |
|
david_8k:
2012-04-05 15:01:23
What about leap years? |
Added by: | cegprakash |
Date: | 2012-01-09 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |