"use strict"; function Main() { let ans = 0; [...Array(365).keys()].forEach(i => { const Dt = new Date(2015, 0, 1, 0, 0); Dt.setDate(Dt.getDate() + i); const Month = Dt.getMonth() + 1; const DayAdded = (i => { if (i > 9) { return Number(String(i).substring(0, 1)) + Number(String(i).substring(1, 2)); } else { return i; } })(Dt.getDate()); if (Month === DayAdded) { ans = ++ans; } }); console.log(ans); } //テストの入力を受け取る //Main(require("fs").readFileSync("/dev/stdin", "utf8")); Main(); //# sourceMappingURL=index.js.map