📅  最后修改于: 2022-03-11 15:03:21.343000             🧑  作者: Mango
// day of the programmer hackerrank solution javascript
function dayOfProgrammer(year) {
// Write your code here
if (year === 1918) return "26.09.1918";
else if (
(year <= 1917 && year % 4 == 0) ||
year % 400 == 0 ||
(year % 4 == 0) & (year % 100 != 0)
)
return "12.09." + year;
else return "13.09." + year;
}