1. Topic Title: Gauss Diary
Gauss, the great mathematician, has a good habit of keeping a diary in any case.
His diary has a different place, he never dated, but with an integer instead of, for example: 4210
Later, people knew that the whole number was a date, which means that it was the day after Gauss was born. It may also be a good habit to remind the owner: How much time can be wasted when the days go by.
Gauss was born in: April 30, 1777.
The diary of an important theorem in Gauss's discovery is labeled: 5343, so it can be calculated that day is: December 15, 1791.
Gauss got his Ph. D. Journal on the day marked: 8113
Please calculate the date of Gauss's doctorate.
The format for submitting the answer is: YYYY-MM-DD, for example: 1980-03-21
Please submit the answer in the browser in strict accordance with the format.
Note: Only submit this date, do not write additional content, such as: descriptive text.
Analysis: This is actually "Santian, two days problem".
Program implementation: (Java Write)[Java] View plain copy package forth; public class dateofndays { /* * Gaussian Diary (given date, calculate the date of X days) */ /* * is leap year */ Boolean isleapyear (int year) { return (year % 400 == 0 | | year % 4 == 0 && year % 100 != 0); } /* * get the maximum number of days of a certain month */ int getmaxday (int year,int month,int day) { switch (month) {  &NBsp; case 1: case 3: case 5: case 7: case 8: case 10: case 12: return 31; case 4: case 6: case 9: case 11: return 30; &NBsp; case 2: return (Isleapyear (year) 29:28); default: return -1; } } /*