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

×

Memory foot-print of code

The problem in question is DECSTR. My solution gives a memory usage of 2.2M. In order to find out how to reduce the mem usage to 1.6M, I looked into some other top solutions but found them almost similar to mine. I then submitted another user's solution (user-name : thechamp) and got a Mem usage of 2.2M. Codechef still lists thechamps's solution with a Mem usage of 1.6M. Has there been a compiler upgradation or am I missing something obvious?

Language used : C

asked 26 Dec '13, 13:37

draciel's gravatar image

3★draciel
16111
accept rate: 50%


yup...the compiler of C(gcc) has been upgraded from 4.3.2 to 4.8.1...so the solns which u see with 1.6M is of the previous version...and the 1s with 2.2M are of the newer version....!!!

link

answered 26 Dec '13, 19:33

kunal361's gravatar image

4★kunal361
6.0k133272
accept rate: 21%

edited 26 Dec '13, 19:34

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:

×234
×107
×99
×15

question asked: 26 Dec '13, 13:37

question was seen: 4,086 times

last updated: 26 Dec '13, 19:34