saegusa's submission of Perfect Subarrays | CodeChef