Guess The Day solution codechef – You are given the NN i.e number of days 2021

Guess The Day solution codechef

You are given the NN i.e number of days. If today is sunday what day it will be on NthNth day from now.

Example

If N=100. we know that today is sunday. we have to calculate what day it will be on 100th day from now.

The answer is TuesdayTuesday. It will be tuesday on 100th day from now.(i.e from sunday).

Note:Note: You can print the answers like (monday,Monday,MONDAY) anyway you want all answers are case insensitive.

Input: Guess The Day solution codechef

  • First line will contain TT, number of testcases. Then the testcases follow.
  • Each testcase contains of a single line of input NN.(i.e Number of Days).

Output: Guess The Day solution codechef

For each testcase, output in a single line answer i.e What day it will be on NthNth Day from sunday.

Constraints

  • 1T10001≤T≤1000
  • 1N1091≤N≤109

Sample Input:

1
100

250

Sample Output:

Tuesday

Friday

SOLUTION

Click here



Guess The Day solution codechef Splitting a String Into Descending Consecutive Values Minimum Adjacent Swaps to Reach the Kth Smallest Number Minimum Interval to Include Each Query
 

Leave a Comment