[TLE] AtCoder/abc015/D_3 (JavaScript)