You are not logged in. Please login at 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

accept rate: 50%

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


answered 26 Dec '13, 19:33

kunal361's gravatar image

accept rate: 21%

edited 26 Dec '13, 19:34

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: 26 Dec '13, 13:37

question was seen: 4,086 times

last updated: 26 Dec '13, 19:34