spakk9's blog

By spakk9, history, 6 years ago, In English

I always use long long in my solution , till now i haven't encountered any problem by this . But , i wonder is there any possibility , that a long long can cause error while int do not .

If you are aware of any such concept , please share it , it will be helpful .

  • Vote: I like it
  • -23
  • Vote: I do not like it

| Write comment?
»
6 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Sometime Memory Limit Exceeds with DP or Graph Implementation, so it's better to use long long only for specific variables which may have chances of integer overflow.

»
6 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Instead of error you may get TLE.