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

×

Many bananas Problem code: LCH15JGH

wat's wrong in this code http://ideone.com/HDhMAP

asked 25 Jan '15, 14:22

harshit95's gravatar image

2★harshit95
52
accept rate: 0%

edited 25 Jan '15, 14:22

getting wa

(25 Jan '15, 14:58) harshit952★

In 1-2 seconds you can perform around 10^6 operations( the online judge @ codechef can perform around 10^7 operations). Your code in the worst case will do atleast O(n^2) ~ 10^5 * 10^5 operations which will result in TLE.

link

answered 25 Jan '15, 14:34

noob333's gravatar image

5★noob333
10414
accept rate: 0%

edited 25 Jan '15, 14:35

but its giving me wa

(25 Jan '15, 14:50) harshit952★
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:

×550
×82

question asked: 25 Jan '15, 14:22

question was seen: 723 times

last updated: 25 Jan '15, 14:58