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
Shaily Mittal:
2012-04-05 15:01:23
I have checked many times but My code is giving correct answer for every output.Please check why i m getting wrong answer. (ID: 6642921) |
|
Paras Sharma:
2012-04-05 15:01:23
How about making it size competition.
|
|
vamsi:
2012-04-05 15:01:23
any one please help me my code is correct i think...
|
|
Andy:
2012-04-05 15:01:23
31 12 3000 is Wednesday |
|
cegprakash:
2012-04-05 15:01:23
Have you guys checked your output with a perfect calender till year 3000? If so ask me |
|
Ajay Gupta:
2012-04-05 15:01:23
i'm screwed up!! all answers are correct even then its showing wrong answer pls help!!! |
|
Jitesh:
2012-04-05 15:01:23
@ cegprakash: I've used the same format as specified in the sample output.....Now can u tell me where I'm getting a WA even I'm getting a correct answer for every date between the specified test cases......
|
|
Kunal Rout:
2012-04-05 15:01:23
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.
|
|
cegprakash:
2012-04-05 15:01:23
The first character should be caps followed by small letters |
|
Kunal Rout:
2012-04-05 15:01:23
Why am I getting wrong answer again and again even though my code is correct.
|
Added by: | cegprakash |
Date: | 2012-01-09 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All |