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

×

magic ranking time limit exceeded

I am having problems with magic ranking problem.

I am quite sure i am using the right approach and produce correct results in O(n^2) but I keep getting TLE .

would someone care to explain to me wat's worng? thank you in advance .

here is my solution to the problem

and here is another solution with double array instead of vector and it gives me SIGSEGV .

asked 07 Apr '14, 05:03

muhammedabuali's gravatar image

0★muhammedabuali
711315
accept rate: 0%

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:

×3,704
×2,698
×1,901
×1,470
×538
×530
×278
×263

question asked: 07 Apr '14, 05:03

question was seen: 943 times

last updated: 07 Apr '14, 05:03