Please read the new rule regarding the restriction on the use of AI tools. ×

akhil_agg7's blog

By akhil_agg7, history, 4 years ago, In English

this is a link to the question: https://www.spoj.com/problems/VECTAR8/

my code is working fine but when the input is 10^6 its giving wrong answer. I m not getting what i m missing due to which getting wrong answer.

my solution: https://www.spoj.com/submit/VECTAR8/id=25896426

please tell me where i am wrong.

  • Vote: I like it
  • 0
  • Vote: I do not like it