yagyanshbhatia's blog

By yagyanshbhatia, history, 5 days ago, In English,

submisson1 and submission2 are almost the same Only thing I did is remove the "#define"s Do they really produce that much of an overhead? If yes, why do people have it in the first place I thought these were resolved at the compile time, run time shouldn’t be affected at all ! Can anyone help me out with this?

 
 
 
 
  • Vote: I like it
  • +6
  • Vote: I do not like it

»
5 days ago, # |
  Vote: I like it +10 Vote: I do not like it

Actually #define int long long causes overhead. Every 32-bit integer will become 64-bit.

  • »
    »
    5 days ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Wow! I had no idea it can cause that much of an overhead! I'll stop using that now :/