CPU: 0.3s
Memory: 1024MB
তোমাকে একটি সঠিক তারিখ দেয়া হবে, তোমাকে বলতে হবে অই তারিখে কি বার ছিল বা হবে।
You will be given a valid date, determine the day of week on that date.
ইনপুটের বর্ণনা
প্রত্যেকটি তেস্টকেস এ ৩টি পূর্ণ সংখ্যা থাকবে D, M, Y. যেখানে D হচ্ছে দিন, M হচ্ছে মাস, Y হচ্ছে বছর কে নির্দেশ করে।
Input Specification
Each test case will contain 3 integers in a line D, M, Y. Where D denotes the day, M denotes the Month, Y denotes the year.
আউটপুটের বর্ণনা
তোমাকে আউটপুট দিতে হবে যে তোমাকে দেয়া তারিখে সপ্তাহের কোন বার ছিল। এবং অবশ্যই নিম্নের শব্দগুলোর মধ্যে একটি - "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" or "Sunday".
Output Specification
Output the day of the week on D. M. Y. The output should be one of the words "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday" or "Sunday".
Constraints
For 20% mark, Y = 2015, For 30% mark, 1900 ≤Y ≤ 9999, For 50% mark, 1900 ≤ Y ≤ 109 For all test cases, 1 ≤ D ≤ 31, 1 ≤ M ≤ 12 It is assured that all the test cases contain a valid date.
Sample
Input | Output |
---|---|
26 4 2015 1 1 1900 31 12 3999 | Sunday Monday Friday |
একটি বছর যদি বেশি ৪০০ দিয়ে বিভাজ্য কিন্তু ১০০ দিয়ে নয় তাহলে অই বছর কে লিপ ইয়ার বা অধিবর্ষ বলা হয়। সাধারণত জানুয়ারি, মার্চ, মে, জুলাই, আগস্ট, অক্টোবর, ডিসেম্বর ৩১ দিনের হয়। ফেব্রুয়ারী ২৮ দিনের হয় কিন্তু অধিবর্ষ এর ক্ষেত্রে ২৯ দিন। আর বাকি সব মাস ৩০ দিনের।
If year index is divisible by 400, or divisible by 4 but not by 100, the year becomes leap year.Typically January, March, May, July, August, October, December have 31 days, February has 28 days ( in leap year its 29 days) and other months have 30 days in a year.