This problem was used in the following GFU competitions:
GFU 2024 D3 Q6
GFU 2024 D2 Q10 (Titled "Expensive Food")
You have been reprimanded again by chef Gordon! He called you a panini head and kicked you out of the kitchen for a given number of days. Find out when you will be allowed back, given the current date and the number of days until you’re allowed back.
The first line will contain a single integer n that represents the number of data sets that follow. Each data set will consist of a date in the format MM/DD/YYYY followed an integer denoting the number of days you have been given.
Output the exact date you will be able to return to the kitchen, in the format M D, YYYY, as shown in the example below.
Example Input:
3
07/03/2023 5
11/23/1999 612
02/15/2009 45
Example Output:
July 8, 2023
July 27, 2001
April 1, 2009
The % (Modulus) operator is the main key to this problem