We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
According to the constraints 1 <= a[i] <= 10**9, but input01.txt contains the following 10 element list: 1 1 1 1 0 1 1 1 1 1. The fifth element is 0, violating the constraint. Please try to comply with your own constraints.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Find Maximum Index Product
You are viewing a single comment's thread. Return to all comments →
According to the constraints
1 <= a[i] <= 10**9
, but input01.txt contains the following 10 element list:1 1 1 1 0 1 1 1 1 1
. The fifth element is0
, violating the constraint. Please try to comply with your own constraints.