You are not logged in. Please login at to post your questions!


Please someone help me for solving this problem.

problem link::

I tried and i got TLE on testcase 15. This is my solution. link::

asked 19 Jun '18, 16:49

captain_16's gravatar image

accept rate: 0%

Your solution seems like naive way of doing that question. The complxity is too high for constraints given in question.
Take a look at editorial or this solution link text


answered 19 Jun '18, 18:25

vbt_95's gravatar image

accept rate: 27%

toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 19 Jun '18, 16:49

question was seen: 93 times

last updated: 19 Jun '18, 18:25