Grand temple problem


1 testcase is showing run error

  1. Take proper array size(N=10^5)
  2. Use types as long long because area can overflow
    https://ide.codingblocks.com/s/239629 see to it