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

×

Please someone help me for solving this problem.

problem link:: http://codeforces.com/contest/986/problem/C

I tried and i got TLE on testcase 15. This is my solution. link:: http://codeforces.com/contest/986/submission/39397854

asked 19 Jun '18, 16:49

captain_16's gravatar image

5★captain_16
1
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

link

answered 19 Jun '18, 18:25

vbt_95's gravatar image

4★vbt_95
4406
accept rate: 27%

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×682

question asked: 19 Jun '18, 16:49

question was seen: 93 times

last updated: 19 Jun '18, 18:25